Define and initialize non-primitive variables at the beginning of function

This commit is contained in:
Hui Yu
2021-11-05 14:13:35 +08:00
parent 5d2e2026eb
commit 33ee688caf
282 changed files with 1659 additions and 553 deletions

View File

@@ -85,6 +85,9 @@ admissionregistration_v1_webhook_client_config_t *admissionregistration_v1_webho
admissionregistration_v1_webhook_client_config_t *admissionregistration_v1_webhook_client_config_local_var = NULL;
// define the local variable for admissionregistration_v1_webhook_client_config->service
admissionregistration_v1_service_reference_t *service_local_nonprim = NULL;
// admissionregistration_v1_webhook_client_config->ca_bundle
cJSON *ca_bundle = cJSON_GetObjectItemCaseSensitive(admissionregistration_v1_webhook_client_configJSON, "caBundle");
if (ca_bundle) {
@@ -96,7 +99,6 @@ admissionregistration_v1_webhook_client_config_t *admissionregistration_v1_webho
// admissionregistration_v1_webhook_client_config->service
cJSON *service = cJSON_GetObjectItemCaseSensitive(admissionregistration_v1_webhook_client_configJSON, "service");
admissionregistration_v1_service_reference_t *service_local_nonprim = NULL;
if (service) {
service_local_nonprim = admissionregistration_v1_service_reference_parseFromJSON(service); //nonprimitive
}

View File

@@ -85,6 +85,9 @@ apiextensions_v1_webhook_client_config_t *apiextensions_v1_webhook_client_config
apiextensions_v1_webhook_client_config_t *apiextensions_v1_webhook_client_config_local_var = NULL;
// define the local variable for apiextensions_v1_webhook_client_config->service
apiextensions_v1_service_reference_t *service_local_nonprim = NULL;
// apiextensions_v1_webhook_client_config->ca_bundle
cJSON *ca_bundle = cJSON_GetObjectItemCaseSensitive(apiextensions_v1_webhook_client_configJSON, "caBundle");
if (ca_bundle) {
@@ -96,7 +99,6 @@ apiextensions_v1_webhook_client_config_t *apiextensions_v1_webhook_client_config
// apiextensions_v1_webhook_client_config->service
cJSON *service = cJSON_GetObjectItemCaseSensitive(apiextensions_v1_webhook_client_configJSON, "service");
apiextensions_v1_service_reference_t *service_local_nonprim = NULL;
if (service) {
service_local_nonprim = apiextensions_v1_service_reference_parseFromJSON(service); //nonprimitive
}

View File

@@ -125,6 +125,15 @@ authentication_v1_token_request_t *authentication_v1_token_request_parseFromJSON
authentication_v1_token_request_t *authentication_v1_token_request_local_var = NULL;
// define the local variable for authentication_v1_token_request->metadata
v1_object_meta_t *metadata_local_nonprim = NULL;
// define the local variable for authentication_v1_token_request->spec
v1_token_request_spec_t *spec_local_nonprim = NULL;
// define the local variable for authentication_v1_token_request->status
v1_token_request_status_t *status_local_nonprim = NULL;
// authentication_v1_token_request->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(authentication_v1_token_requestJSON, "apiVersion");
if (api_version) {
@@ -145,7 +154,6 @@ authentication_v1_token_request_t *authentication_v1_token_request_parseFromJSON
// authentication_v1_token_request->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(authentication_v1_token_requestJSON, "metadata");
v1_object_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive
}
@@ -156,13 +164,11 @@ authentication_v1_token_request_t *authentication_v1_token_request_parseFromJSON
goto end;
}
v1_token_request_spec_t *spec_local_nonprim = NULL;
spec_local_nonprim = v1_token_request_spec_parseFromJSON(spec); //nonprimitive
// authentication_v1_token_request->status
cJSON *status = cJSON_GetObjectItemCaseSensitive(authentication_v1_token_requestJSON, "status");
v1_token_request_status_t *status_local_nonprim = NULL;
if (status) {
status_local_nonprim = v1_token_request_status_parseFromJSON(status); //nonprimitive
}

View File

@@ -301,6 +301,21 @@ core_v1_event_t *core_v1_event_parseFromJSON(cJSON *core_v1_eventJSON){
core_v1_event_t *core_v1_event_local_var = NULL;
// define the local variable for core_v1_event->involved_object
v1_object_reference_t *involved_object_local_nonprim = NULL;
// define the local variable for core_v1_event->metadata
v1_object_meta_t *metadata_local_nonprim = NULL;
// define the local variable for core_v1_event->related
v1_object_reference_t *related_local_nonprim = NULL;
// define the local variable for core_v1_event->series
core_v1_event_series_t *series_local_nonprim = NULL;
// define the local variable for core_v1_event->source
v1_event_source_t *source_local_nonprim = NULL;
// core_v1_event->action
cJSON *action = cJSON_GetObjectItemCaseSensitive(core_v1_eventJSON, "action");
if (action) {
@@ -352,7 +367,6 @@ core_v1_event_t *core_v1_event_parseFromJSON(cJSON *core_v1_eventJSON){
goto end;
}
v1_object_reference_t *involved_object_local_nonprim = NULL;
involved_object_local_nonprim = v1_object_reference_parseFromJSON(involved_object); //nonprimitive
@@ -389,7 +403,6 @@ core_v1_event_t *core_v1_event_parseFromJSON(cJSON *core_v1_eventJSON){
goto end;
}
v1_object_meta_t *metadata_local_nonprim = NULL;
metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive
@@ -404,7 +417,6 @@ core_v1_event_t *core_v1_event_parseFromJSON(cJSON *core_v1_eventJSON){
// core_v1_event->related
cJSON *related = cJSON_GetObjectItemCaseSensitive(core_v1_eventJSON, "related");
v1_object_reference_t *related_local_nonprim = NULL;
if (related) {
related_local_nonprim = v1_object_reference_parseFromJSON(related); //nonprimitive
}
@@ -429,14 +441,12 @@ core_v1_event_t *core_v1_event_parseFromJSON(cJSON *core_v1_eventJSON){
// core_v1_event->series
cJSON *series = cJSON_GetObjectItemCaseSensitive(core_v1_eventJSON, "series");
core_v1_event_series_t *series_local_nonprim = NULL;
if (series) {
series_local_nonprim = core_v1_event_series_parseFromJSON(series); //nonprimitive
}
// core_v1_event->source
cJSON *source = cJSON_GetObjectItemCaseSensitive(core_v1_eventJSON, "source");
v1_event_source_t *source_local_nonprim = NULL;
if (source) {
source_local_nonprim = v1_event_source_parseFromJSON(source); //nonprimitive
}

View File

@@ -116,6 +116,9 @@ core_v1_event_list_t *core_v1_event_list_parseFromJSON(cJSON *core_v1_event_list
core_v1_event_list_t *core_v1_event_list_local_var = NULL;
// define the local variable for core_v1_event_list->metadata
v1_list_meta_t *metadata_local_nonprim = NULL;
// core_v1_event_list->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(core_v1_event_listJSON, "apiVersion");
if (api_version) {
@@ -161,7 +164,6 @@ core_v1_event_list_t *core_v1_event_list_parseFromJSON(cJSON *core_v1_event_list
// core_v1_event_list->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(core_v1_event_listJSON, "metadata");
v1_list_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive
}

View File

@@ -299,6 +299,21 @@ events_v1_event_t *events_v1_event_parseFromJSON(cJSON *events_v1_eventJSON){
events_v1_event_t *events_v1_event_local_var = NULL;
// define the local variable for events_v1_event->deprecated_source
v1_event_source_t *deprecated_source_local_nonprim = NULL;
// define the local variable for events_v1_event->metadata
v1_object_meta_t *metadata_local_nonprim = NULL;
// define the local variable for events_v1_event->regarding
v1_object_reference_t *regarding_local_nonprim = NULL;
// define the local variable for events_v1_event->related
v1_object_reference_t *related_local_nonprim = NULL;
// define the local variable for events_v1_event->series
events_v1_event_series_t *series_local_nonprim = NULL;
// events_v1_event->action
cJSON *action = cJSON_GetObjectItemCaseSensitive(events_v1_eventJSON, "action");
if (action) {
@@ -346,7 +361,6 @@ events_v1_event_t *events_v1_event_parseFromJSON(cJSON *events_v1_eventJSON){
// events_v1_event->deprecated_source
cJSON *deprecated_source = cJSON_GetObjectItemCaseSensitive(events_v1_eventJSON, "deprecatedSource");
v1_event_source_t *deprecated_source_local_nonprim = NULL;
if (deprecated_source) {
deprecated_source_local_nonprim = v1_event_source_parseFromJSON(deprecated_source); //nonprimitive
}
@@ -374,7 +388,6 @@ events_v1_event_t *events_v1_event_parseFromJSON(cJSON *events_v1_eventJSON){
// events_v1_event->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(events_v1_eventJSON, "metadata");
v1_object_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive
}
@@ -399,14 +412,12 @@ events_v1_event_t *events_v1_event_parseFromJSON(cJSON *events_v1_eventJSON){
// events_v1_event->regarding
cJSON *regarding = cJSON_GetObjectItemCaseSensitive(events_v1_eventJSON, "regarding");
v1_object_reference_t *regarding_local_nonprim = NULL;
if (regarding) {
regarding_local_nonprim = v1_object_reference_parseFromJSON(regarding); //nonprimitive
}
// events_v1_event->related
cJSON *related = cJSON_GetObjectItemCaseSensitive(events_v1_eventJSON, "related");
v1_object_reference_t *related_local_nonprim = NULL;
if (related) {
related_local_nonprim = v1_object_reference_parseFromJSON(related); //nonprimitive
}
@@ -431,7 +442,6 @@ events_v1_event_t *events_v1_event_parseFromJSON(cJSON *events_v1_eventJSON){
// events_v1_event->series
cJSON *series = cJSON_GetObjectItemCaseSensitive(events_v1_eventJSON, "series");
events_v1_event_series_t *series_local_nonprim = NULL;
if (series) {
series_local_nonprim = events_v1_event_series_parseFromJSON(series); //nonprimitive
}

View File

@@ -116,6 +116,9 @@ events_v1_event_list_t *events_v1_event_list_parseFromJSON(cJSON *events_v1_even
events_v1_event_list_t *events_v1_event_list_local_var = NULL;
// define the local variable for events_v1_event_list->metadata
v1_list_meta_t *metadata_local_nonprim = NULL;
// events_v1_event_list->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(events_v1_event_listJSON, "apiVersion");
if (api_version) {
@@ -161,7 +164,6 @@ events_v1_event_list_t *events_v1_event_list_parseFromJSON(cJSON *events_v1_even
// events_v1_event_list->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(events_v1_event_listJSON, "metadata");
v1_list_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive
}

View File

@@ -95,23 +95,29 @@ v1_affinity_t *v1_affinity_parseFromJSON(cJSON *v1_affinityJSON){
v1_affinity_t *v1_affinity_local_var = NULL;
// define the local variable for v1_affinity->node_affinity
v1_node_affinity_t *node_affinity_local_nonprim = NULL;
// define the local variable for v1_affinity->pod_affinity
v1_pod_affinity_t *pod_affinity_local_nonprim = NULL;
// define the local variable for v1_affinity->pod_anti_affinity
v1_pod_anti_affinity_t *pod_anti_affinity_local_nonprim = NULL;
// v1_affinity->node_affinity
cJSON *node_affinity = cJSON_GetObjectItemCaseSensitive(v1_affinityJSON, "nodeAffinity");
v1_node_affinity_t *node_affinity_local_nonprim = NULL;
if (node_affinity) {
node_affinity_local_nonprim = v1_node_affinity_parseFromJSON(node_affinity); //nonprimitive
}
// v1_affinity->pod_affinity
cJSON *pod_affinity = cJSON_GetObjectItemCaseSensitive(v1_affinityJSON, "podAffinity");
v1_pod_affinity_t *pod_affinity_local_nonprim = NULL;
if (pod_affinity) {
pod_affinity_local_nonprim = v1_pod_affinity_parseFromJSON(pod_affinity); //nonprimitive
}
// v1_affinity->pod_anti_affinity
cJSON *pod_anti_affinity = cJSON_GetObjectItemCaseSensitive(v1_affinityJSON, "podAntiAffinity");
v1_pod_anti_affinity_t *pod_anti_affinity_local_nonprim = NULL;
if (pod_anti_affinity) {
pod_anti_affinity_local_nonprim = v1_pod_anti_affinity_parseFromJSON(pod_anti_affinity); //nonprimitive
}

View File

@@ -161,6 +161,9 @@ v1_api_group_t *v1_api_group_parseFromJSON(cJSON *v1_api_groupJSON){
v1_api_group_t *v1_api_group_local_var = NULL;
// define the local variable for v1_api_group->preferred_version
v1_group_version_for_discovery_t *preferred_version_local_nonprim = NULL;
// v1_api_group->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_api_groupJSON, "apiVersion");
if (api_version) {
@@ -193,7 +196,6 @@ v1_api_group_t *v1_api_group_parseFromJSON(cJSON *v1_api_groupJSON){
// v1_api_group->preferred_version
cJSON *preferred_version = cJSON_GetObjectItemCaseSensitive(v1_api_groupJSON, "preferredVersion");
v1_group_version_for_discovery_t *preferred_version_local_nonprim = NULL;
if (preferred_version) {
preferred_version_local_nonprim = v1_group_version_for_discovery_parseFromJSON(preferred_version); //nonprimitive
}

View File

@@ -123,6 +123,15 @@ v1_api_service_t *v1_api_service_parseFromJSON(cJSON *v1_api_serviceJSON){
v1_api_service_t *v1_api_service_local_var = NULL;
// define the local variable for v1_api_service->metadata
v1_object_meta_t *metadata_local_nonprim = NULL;
// define the local variable for v1_api_service->spec
v1_api_service_spec_t *spec_local_nonprim = NULL;
// define the local variable for v1_api_service->status
v1_api_service_status_t *status_local_nonprim = NULL;
// v1_api_service->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_api_serviceJSON, "apiVersion");
if (api_version) {
@@ -143,21 +152,18 @@ v1_api_service_t *v1_api_service_parseFromJSON(cJSON *v1_api_serviceJSON){
// v1_api_service->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_api_serviceJSON, "metadata");
v1_object_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive
}
// v1_api_service->spec
cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1_api_serviceJSON, "spec");
v1_api_service_spec_t *spec_local_nonprim = NULL;
if (spec) {
spec_local_nonprim = v1_api_service_spec_parseFromJSON(spec); //nonprimitive
}
// v1_api_service->status
cJSON *status = cJSON_GetObjectItemCaseSensitive(v1_api_serviceJSON, "status");
v1_api_service_status_t *status_local_nonprim = NULL;
if (status) {
status_local_nonprim = v1_api_service_status_parseFromJSON(status); //nonprimitive
}

View File

@@ -116,6 +116,9 @@ v1_api_service_list_t *v1_api_service_list_parseFromJSON(cJSON *v1_api_service_l
v1_api_service_list_t *v1_api_service_list_local_var = NULL;
// define the local variable for v1_api_service_list->metadata
v1_list_meta_t *metadata_local_nonprim = NULL;
// v1_api_service_list->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_api_service_listJSON, "apiVersion");
if (api_version) {
@@ -161,7 +164,6 @@ v1_api_service_list_t *v1_api_service_list_parseFromJSON(cJSON *v1_api_service_l
// v1_api_service_list->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_api_service_listJSON, "metadata");
v1_list_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive
}

View File

@@ -133,6 +133,9 @@ v1_api_service_spec_t *v1_api_service_spec_parseFromJSON(cJSON *v1_api_service_s
v1_api_service_spec_t *v1_api_service_spec_local_var = NULL;
// define the local variable for v1_api_service_spec->service
apiregistration_v1_service_reference_t *service_local_nonprim = NULL;
// v1_api_service_spec->ca_bundle
cJSON *ca_bundle = cJSON_GetObjectItemCaseSensitive(v1_api_service_specJSON, "caBundle");
if (ca_bundle) {
@@ -174,7 +177,6 @@ v1_api_service_spec_t *v1_api_service_spec_parseFromJSON(cJSON *v1_api_service_s
// v1_api_service_spec->service
cJSON *service = cJSON_GetObjectItemCaseSensitive(v1_api_service_specJSON, "service");
apiregistration_v1_service_reference_t *service_local_nonprim = NULL;
if (service) {
service_local_nonprim = apiregistration_v1_service_reference_parseFromJSON(service); //nonprimitive
}

View File

@@ -106,6 +106,12 @@ v1_binding_t *v1_binding_parseFromJSON(cJSON *v1_bindingJSON){
v1_binding_t *v1_binding_local_var = NULL;
// define the local variable for v1_binding->metadata
v1_object_meta_t *metadata_local_nonprim = NULL;
// define the local variable for v1_binding->target
v1_object_reference_t *target_local_nonprim = NULL;
// v1_binding->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_bindingJSON, "apiVersion");
if (api_version) {
@@ -126,7 +132,6 @@ v1_binding_t *v1_binding_parseFromJSON(cJSON *v1_bindingJSON){
// v1_binding->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_bindingJSON, "metadata");
v1_object_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive
}
@@ -137,7 +142,6 @@ v1_binding_t *v1_binding_parseFromJSON(cJSON *v1_bindingJSON){
goto end;
}
v1_object_reference_t *target_local_nonprim = NULL;
target_local_nonprim = v1_object_reference_parseFromJSON(target); //nonprimitive

View File

@@ -137,6 +137,9 @@ v1_ceph_fs_persistent_volume_source_t *v1_ceph_fs_persistent_volume_source_parse
v1_ceph_fs_persistent_volume_source_t *v1_ceph_fs_persistent_volume_source_local_var = NULL;
// define the local variable for v1_ceph_fs_persistent_volume_source->secret_ref
v1_secret_reference_t *secret_ref_local_nonprim = NULL;
// v1_ceph_fs_persistent_volume_source->monitors
cJSON *monitors = cJSON_GetObjectItemCaseSensitive(v1_ceph_fs_persistent_volume_sourceJSON, "monitors");
if (!monitors) {
@@ -189,7 +192,6 @@ v1_ceph_fs_persistent_volume_source_t *v1_ceph_fs_persistent_volume_source_parse
// v1_ceph_fs_persistent_volume_source->secret_ref
cJSON *secret_ref = cJSON_GetObjectItemCaseSensitive(v1_ceph_fs_persistent_volume_sourceJSON, "secretRef");
v1_secret_reference_t *secret_ref_local_nonprim = NULL;
if (secret_ref) {
secret_ref_local_nonprim = v1_secret_reference_parseFromJSON(secret_ref); //nonprimitive
}

View File

@@ -137,6 +137,9 @@ v1_ceph_fs_volume_source_t *v1_ceph_fs_volume_source_parseFromJSON(cJSON *v1_cep
v1_ceph_fs_volume_source_t *v1_ceph_fs_volume_source_local_var = NULL;
// define the local variable for v1_ceph_fs_volume_source->secret_ref
v1_local_object_reference_t *secret_ref_local_nonprim = NULL;
// v1_ceph_fs_volume_source->monitors
cJSON *monitors = cJSON_GetObjectItemCaseSensitive(v1_ceph_fs_volume_sourceJSON, "monitors");
if (!monitors) {
@@ -189,7 +192,6 @@ v1_ceph_fs_volume_source_t *v1_ceph_fs_volume_source_parseFromJSON(cJSON *v1_cep
// v1_ceph_fs_volume_source->secret_ref
cJSON *secret_ref = cJSON_GetObjectItemCaseSensitive(v1_ceph_fs_volume_sourceJSON, "secretRef");
v1_local_object_reference_t *secret_ref_local_nonprim = NULL;
if (secret_ref) {
secret_ref_local_nonprim = v1_local_object_reference_parseFromJSON(secret_ref); //nonprimitive
}

View File

@@ -125,6 +125,15 @@ v1_certificate_signing_request_t *v1_certificate_signing_request_parseFromJSON(c
v1_certificate_signing_request_t *v1_certificate_signing_request_local_var = NULL;
// define the local variable for v1_certificate_signing_request->metadata
v1_object_meta_t *metadata_local_nonprim = NULL;
// define the local variable for v1_certificate_signing_request->spec
v1_certificate_signing_request_spec_t *spec_local_nonprim = NULL;
// define the local variable for v1_certificate_signing_request->status
v1_certificate_signing_request_status_t *status_local_nonprim = NULL;
// v1_certificate_signing_request->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_certificate_signing_requestJSON, "apiVersion");
if (api_version) {
@@ -145,7 +154,6 @@ v1_certificate_signing_request_t *v1_certificate_signing_request_parseFromJSON(c
// v1_certificate_signing_request->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_certificate_signing_requestJSON, "metadata");
v1_object_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive
}
@@ -156,13 +164,11 @@ v1_certificate_signing_request_t *v1_certificate_signing_request_parseFromJSON(c
goto end;
}
v1_certificate_signing_request_spec_t *spec_local_nonprim = NULL;
spec_local_nonprim = v1_certificate_signing_request_spec_parseFromJSON(spec); //nonprimitive
// v1_certificate_signing_request->status
cJSON *status = cJSON_GetObjectItemCaseSensitive(v1_certificate_signing_requestJSON, "status");
v1_certificate_signing_request_status_t *status_local_nonprim = NULL;
if (status) {
status_local_nonprim = v1_certificate_signing_request_status_parseFromJSON(status); //nonprimitive
}

View File

@@ -116,6 +116,9 @@ v1_certificate_signing_request_list_t *v1_certificate_signing_request_list_parse
v1_certificate_signing_request_list_t *v1_certificate_signing_request_list_local_var = NULL;
// define the local variable for v1_certificate_signing_request_list->metadata
v1_list_meta_t *metadata_local_nonprim = NULL;
// v1_certificate_signing_request_list->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_certificate_signing_request_listJSON, "apiVersion");
if (api_version) {
@@ -161,7 +164,6 @@ v1_certificate_signing_request_list_t *v1_certificate_signing_request_list_parse
// v1_certificate_signing_request_list->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_certificate_signing_request_listJSON, "metadata");
v1_list_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive
}

View File

@@ -97,6 +97,9 @@ v1_cinder_persistent_volume_source_t *v1_cinder_persistent_volume_source_parseFr
v1_cinder_persistent_volume_source_t *v1_cinder_persistent_volume_source_local_var = NULL;
// define the local variable for v1_cinder_persistent_volume_source->secret_ref
v1_secret_reference_t *secret_ref_local_nonprim = NULL;
// v1_cinder_persistent_volume_source->fs_type
cJSON *fs_type = cJSON_GetObjectItemCaseSensitive(v1_cinder_persistent_volume_sourceJSON, "fsType");
if (fs_type) {
@@ -117,7 +120,6 @@ v1_cinder_persistent_volume_source_t *v1_cinder_persistent_volume_source_parseFr
// v1_cinder_persistent_volume_source->secret_ref
cJSON *secret_ref = cJSON_GetObjectItemCaseSensitive(v1_cinder_persistent_volume_sourceJSON, "secretRef");
v1_secret_reference_t *secret_ref_local_nonprim = NULL;
if (secret_ref) {
secret_ref_local_nonprim = v1_secret_reference_parseFromJSON(secret_ref); //nonprimitive
}

View File

@@ -97,6 +97,9 @@ v1_cinder_volume_source_t *v1_cinder_volume_source_parseFromJSON(cJSON *v1_cinde
v1_cinder_volume_source_t *v1_cinder_volume_source_local_var = NULL;
// define the local variable for v1_cinder_volume_source->secret_ref
v1_local_object_reference_t *secret_ref_local_nonprim = NULL;
// v1_cinder_volume_source->fs_type
cJSON *fs_type = cJSON_GetObjectItemCaseSensitive(v1_cinder_volume_sourceJSON, "fsType");
if (fs_type) {
@@ -117,7 +120,6 @@ v1_cinder_volume_source_t *v1_cinder_volume_source_parseFromJSON(cJSON *v1_cinde
// v1_cinder_volume_source->secret_ref
cJSON *secret_ref = cJSON_GetObjectItemCaseSensitive(v1_cinder_volume_sourceJSON, "secretRef");
v1_local_object_reference_t *secret_ref_local_nonprim = NULL;
if (secret_ref) {
secret_ref_local_nonprim = v1_local_object_reference_parseFromJSON(secret_ref); //nonprimitive
}

View File

@@ -133,9 +133,14 @@ v1_cluster_role_t *v1_cluster_role_parseFromJSON(cJSON *v1_cluster_roleJSON){
v1_cluster_role_t *v1_cluster_role_local_var = NULL;
// define the local variable for v1_cluster_role->aggregation_rule
v1_aggregation_rule_t *aggregation_rule_local_nonprim = NULL;
// define the local variable for v1_cluster_role->metadata
v1_object_meta_t *metadata_local_nonprim = NULL;
// v1_cluster_role->aggregation_rule
cJSON *aggregation_rule = cJSON_GetObjectItemCaseSensitive(v1_cluster_roleJSON, "aggregationRule");
v1_aggregation_rule_t *aggregation_rule_local_nonprim = NULL;
if (aggregation_rule) {
aggregation_rule_local_nonprim = v1_aggregation_rule_parseFromJSON(aggregation_rule); //nonprimitive
}
@@ -160,7 +165,6 @@ v1_cluster_role_t *v1_cluster_role_parseFromJSON(cJSON *v1_cluster_roleJSON){
// v1_cluster_role->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_cluster_roleJSON, "metadata");
v1_object_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive
}

View File

@@ -135,6 +135,12 @@ v1_cluster_role_binding_t *v1_cluster_role_binding_parseFromJSON(cJSON *v1_clust
v1_cluster_role_binding_t *v1_cluster_role_binding_local_var = NULL;
// define the local variable for v1_cluster_role_binding->metadata
v1_object_meta_t *metadata_local_nonprim = NULL;
// define the local variable for v1_cluster_role_binding->role_ref
v1_role_ref_t *role_ref_local_nonprim = NULL;
// v1_cluster_role_binding->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_cluster_role_bindingJSON, "apiVersion");
if (api_version) {
@@ -155,7 +161,6 @@ v1_cluster_role_binding_t *v1_cluster_role_binding_parseFromJSON(cJSON *v1_clust
// v1_cluster_role_binding->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_cluster_role_bindingJSON, "metadata");
v1_object_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive
}
@@ -166,7 +171,6 @@ v1_cluster_role_binding_t *v1_cluster_role_binding_parseFromJSON(cJSON *v1_clust
goto end;
}
v1_role_ref_t *role_ref_local_nonprim = NULL;
role_ref_local_nonprim = v1_role_ref_parseFromJSON(role_ref); //nonprimitive

View File

@@ -116,6 +116,9 @@ v1_cluster_role_binding_list_t *v1_cluster_role_binding_list_parseFromJSON(cJSON
v1_cluster_role_binding_list_t *v1_cluster_role_binding_list_local_var = NULL;
// define the local variable for v1_cluster_role_binding_list->metadata
v1_list_meta_t *metadata_local_nonprim = NULL;
// v1_cluster_role_binding_list->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_cluster_role_binding_listJSON, "apiVersion");
if (api_version) {
@@ -161,7 +164,6 @@ v1_cluster_role_binding_list_t *v1_cluster_role_binding_list_parseFromJSON(cJSON
// v1_cluster_role_binding_list->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_cluster_role_binding_listJSON, "metadata");
v1_list_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive
}

View File

@@ -116,6 +116,9 @@ v1_cluster_role_list_t *v1_cluster_role_list_parseFromJSON(cJSON *v1_cluster_rol
v1_cluster_role_list_t *v1_cluster_role_list_local_var = NULL;
// define the local variable for v1_cluster_role_list->metadata
v1_list_meta_t *metadata_local_nonprim = NULL;
// v1_cluster_role_list->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_cluster_role_listJSON, "apiVersion");
if (api_version) {
@@ -161,7 +164,6 @@ v1_cluster_role_list_t *v1_cluster_role_list_parseFromJSON(cJSON *v1_cluster_rol
// v1_cluster_role_list->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_cluster_role_listJSON, "metadata");
v1_list_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive
}

View File

@@ -114,6 +114,9 @@ v1_component_status_t *v1_component_status_parseFromJSON(cJSON *v1_component_sta
v1_component_status_t *v1_component_status_local_var = NULL;
// define the local variable for v1_component_status->metadata
v1_object_meta_t *metadata_local_nonprim = NULL;
// v1_component_status->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_component_statusJSON, "apiVersion");
if (api_version) {
@@ -156,7 +159,6 @@ v1_component_status_t *v1_component_status_parseFromJSON(cJSON *v1_component_sta
// v1_component_status->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_component_statusJSON, "metadata");
v1_object_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive
}

View File

@@ -116,6 +116,9 @@ v1_component_status_list_t *v1_component_status_list_parseFromJSON(cJSON *v1_com
v1_component_status_list_t *v1_component_status_list_local_var = NULL;
// define the local variable for v1_component_status_list->metadata
v1_list_meta_t *metadata_local_nonprim = NULL;
// v1_component_status_list->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_component_status_listJSON, "apiVersion");
if (api_version) {
@@ -161,7 +164,6 @@ v1_component_status_list_t *v1_component_status_list_parseFromJSON(cJSON *v1_com
// v1_component_status_list->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_component_status_listJSON, "metadata");
v1_list_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive
}

View File

@@ -159,6 +159,9 @@ v1_config_map_t *v1_config_map_parseFromJSON(cJSON *v1_config_mapJSON){
v1_config_map_t *v1_config_map_local_var = NULL;
// define the local variable for v1_config_map->metadata
v1_object_meta_t *metadata_local_nonprim = NULL;
// v1_config_map->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_config_mapJSON, "apiVersion");
if (api_version) {
@@ -232,7 +235,6 @@ v1_config_map_t *v1_config_map_parseFromJSON(cJSON *v1_config_mapJSON){
// v1_config_map->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_config_mapJSON, "metadata");
v1_object_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive
}

View File

@@ -116,6 +116,9 @@ v1_config_map_list_t *v1_config_map_list_parseFromJSON(cJSON *v1_config_map_list
v1_config_map_list_t *v1_config_map_list_local_var = NULL;
// define the local variable for v1_config_map_list->metadata
v1_list_meta_t *metadata_local_nonprim = NULL;
// v1_config_map_list->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_config_map_listJSON, "apiVersion");
if (api_version) {
@@ -161,7 +164,6 @@ v1_config_map_list_t *v1_config_map_list_parseFromJSON(cJSON *v1_config_map_list
// v1_config_map_list->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_config_map_listJSON, "metadata");
v1_list_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive
}

View File

@@ -465,6 +465,24 @@ v1_container_t *v1_container_parseFromJSON(cJSON *v1_containerJSON){
v1_container_t *v1_container_local_var = NULL;
// define the local variable for v1_container->lifecycle
v1_lifecycle_t *lifecycle_local_nonprim = NULL;
// define the local variable for v1_container->liveness_probe
v1_probe_t *liveness_probe_local_nonprim = NULL;
// define the local variable for v1_container->readiness_probe
v1_probe_t *readiness_probe_local_nonprim = NULL;
// define the local variable for v1_container->resources
v1_resource_requirements_t *resources_local_nonprim = NULL;
// define the local variable for v1_container->security_context
v1_security_context_t *security_context_local_nonprim = NULL;
// define the local variable for v1_container->startup_probe
v1_probe_t *startup_probe_local_nonprim = NULL;
// v1_container->args
cJSON *args = cJSON_GetObjectItemCaseSensitive(v1_containerJSON, "args");
list_t *argsList;
@@ -569,14 +587,12 @@ v1_container_t *v1_container_parseFromJSON(cJSON *v1_containerJSON){
// v1_container->lifecycle
cJSON *lifecycle = cJSON_GetObjectItemCaseSensitive(v1_containerJSON, "lifecycle");
v1_lifecycle_t *lifecycle_local_nonprim = NULL;
if (lifecycle) {
lifecycle_local_nonprim = v1_lifecycle_parseFromJSON(lifecycle); //nonprimitive
}
// v1_container->liveness_probe
cJSON *liveness_probe = cJSON_GetObjectItemCaseSensitive(v1_containerJSON, "livenessProbe");
v1_probe_t *liveness_probe_local_nonprim = NULL;
if (liveness_probe) {
liveness_probe_local_nonprim = v1_probe_parseFromJSON(liveness_probe); //nonprimitive
}
@@ -617,28 +633,24 @@ v1_container_t *v1_container_parseFromJSON(cJSON *v1_containerJSON){
// v1_container->readiness_probe
cJSON *readiness_probe = cJSON_GetObjectItemCaseSensitive(v1_containerJSON, "readinessProbe");
v1_probe_t *readiness_probe_local_nonprim = NULL;
if (readiness_probe) {
readiness_probe_local_nonprim = v1_probe_parseFromJSON(readiness_probe); //nonprimitive
}
// v1_container->resources
cJSON *resources = cJSON_GetObjectItemCaseSensitive(v1_containerJSON, "resources");
v1_resource_requirements_t *resources_local_nonprim = NULL;
if (resources) {
resources_local_nonprim = v1_resource_requirements_parseFromJSON(resources); //nonprimitive
}
// v1_container->security_context
cJSON *security_context = cJSON_GetObjectItemCaseSensitive(v1_containerJSON, "securityContext");
v1_security_context_t *security_context_local_nonprim = NULL;
if (security_context) {
security_context_local_nonprim = v1_security_context_parseFromJSON(security_context); //nonprimitive
}
// v1_container->startup_probe
cJSON *startup_probe = cJSON_GetObjectItemCaseSensitive(v1_containerJSON, "startupProbe");
v1_probe_t *startup_probe_local_nonprim = NULL;
if (startup_probe) {
startup_probe_local_nonprim = v1_probe_parseFromJSON(startup_probe); //nonprimitive
}

View File

@@ -95,23 +95,29 @@ v1_container_state_t *v1_container_state_parseFromJSON(cJSON *v1_container_state
v1_container_state_t *v1_container_state_local_var = NULL;
// define the local variable for v1_container_state->running
v1_container_state_running_t *running_local_nonprim = NULL;
// define the local variable for v1_container_state->terminated
v1_container_state_terminated_t *terminated_local_nonprim = NULL;
// define the local variable for v1_container_state->waiting
v1_container_state_waiting_t *waiting_local_nonprim = NULL;
// v1_container_state->running
cJSON *running = cJSON_GetObjectItemCaseSensitive(v1_container_stateJSON, "running");
v1_container_state_running_t *running_local_nonprim = NULL;
if (running) {
running_local_nonprim = v1_container_state_running_parseFromJSON(running); //nonprimitive
}
// v1_container_state->terminated
cJSON *terminated = cJSON_GetObjectItemCaseSensitive(v1_container_stateJSON, "terminated");
v1_container_state_terminated_t *terminated_local_nonprim = NULL;
if (terminated) {
terminated_local_nonprim = v1_container_state_terminated_parseFromJSON(terminated); //nonprimitive
}
// v1_container_state->waiting
cJSON *waiting = cJSON_GetObjectItemCaseSensitive(v1_container_stateJSON, "waiting");
v1_container_state_waiting_t *waiting_local_nonprim = NULL;
if (waiting) {
waiting_local_nonprim = v1_container_state_waiting_parseFromJSON(waiting); //nonprimitive
}

View File

@@ -172,6 +172,12 @@ v1_container_status_t *v1_container_status_parseFromJSON(cJSON *v1_container_sta
v1_container_status_t *v1_container_status_local_var = NULL;
// define the local variable for v1_container_status->last_state
v1_container_state_t *last_state_local_nonprim = NULL;
// define the local variable for v1_container_status->state
v1_container_state_t *state_local_nonprim = NULL;
// v1_container_status->container_id
cJSON *container_id = cJSON_GetObjectItemCaseSensitive(v1_container_statusJSON, "containerID");
if (container_id) {
@@ -207,7 +213,6 @@ v1_container_status_t *v1_container_status_parseFromJSON(cJSON *v1_container_sta
// v1_container_status->last_state
cJSON *last_state = cJSON_GetObjectItemCaseSensitive(v1_container_statusJSON, "lastState");
v1_container_state_t *last_state_local_nonprim = NULL;
if (last_state) {
last_state_local_nonprim = v1_container_state_parseFromJSON(last_state); //nonprimitive
}
@@ -259,7 +264,6 @@ v1_container_status_t *v1_container_status_parseFromJSON(cJSON *v1_container_sta
// v1_container_status->state
cJSON *state = cJSON_GetObjectItemCaseSensitive(v1_container_statusJSON, "state");
v1_container_state_t *state_local_nonprim = NULL;
if (state) {
state_local_nonprim = v1_container_state_parseFromJSON(state); //nonprimitive
}

View File

@@ -116,6 +116,9 @@ v1_controller_revision_t *v1_controller_revision_parseFromJSON(cJSON *v1_control
v1_controller_revision_t *v1_controller_revision_local_var = NULL;
// define the local variable for v1_controller_revision->metadata
v1_object_meta_t *metadata_local_nonprim = NULL;
// v1_controller_revision->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_controller_revisionJSON, "apiVersion");
if (api_version) {
@@ -143,7 +146,6 @@ v1_controller_revision_t *v1_controller_revision_parseFromJSON(cJSON *v1_control
// v1_controller_revision->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_controller_revisionJSON, "metadata");
v1_object_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive
}

View File

@@ -116,6 +116,9 @@ v1_controller_revision_list_t *v1_controller_revision_list_parseFromJSON(cJSON *
v1_controller_revision_list_t *v1_controller_revision_list_local_var = NULL;
// define the local variable for v1_controller_revision_list->metadata
v1_list_meta_t *metadata_local_nonprim = NULL;
// v1_controller_revision_list->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_controller_revision_listJSON, "apiVersion");
if (api_version) {
@@ -161,7 +164,6 @@ v1_controller_revision_list_t *v1_controller_revision_list_parseFromJSON(cJSON *
// v1_controller_revision_list->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_controller_revision_listJSON, "metadata");
v1_list_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive
}

View File

@@ -123,6 +123,15 @@ v1_cron_job_t *v1_cron_job_parseFromJSON(cJSON *v1_cron_jobJSON){
v1_cron_job_t *v1_cron_job_local_var = NULL;
// define the local variable for v1_cron_job->metadata
v1_object_meta_t *metadata_local_nonprim = NULL;
// define the local variable for v1_cron_job->spec
v1_cron_job_spec_t *spec_local_nonprim = NULL;
// define the local variable for v1_cron_job->status
v1_cron_job_status_t *status_local_nonprim = NULL;
// v1_cron_job->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_cron_jobJSON, "apiVersion");
if (api_version) {
@@ -143,21 +152,18 @@ v1_cron_job_t *v1_cron_job_parseFromJSON(cJSON *v1_cron_jobJSON){
// v1_cron_job->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_cron_jobJSON, "metadata");
v1_object_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive
}
// v1_cron_job->spec
cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1_cron_jobJSON, "spec");
v1_cron_job_spec_t *spec_local_nonprim = NULL;
if (spec) {
spec_local_nonprim = v1_cron_job_spec_parseFromJSON(spec); //nonprimitive
}
// v1_cron_job->status
cJSON *status = cJSON_GetObjectItemCaseSensitive(v1_cron_jobJSON, "status");
v1_cron_job_status_t *status_local_nonprim = NULL;
if (status) {
status_local_nonprim = v1_cron_job_status_parseFromJSON(status); //nonprimitive
}

View File

@@ -116,6 +116,9 @@ v1_cron_job_list_t *v1_cron_job_list_parseFromJSON(cJSON *v1_cron_job_listJSON){
v1_cron_job_list_t *v1_cron_job_list_local_var = NULL;
// define the local variable for v1_cron_job_list->metadata
v1_list_meta_t *metadata_local_nonprim = NULL;
// v1_cron_job_list->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_cron_job_listJSON, "apiVersion");
if (api_version) {
@@ -161,7 +164,6 @@ v1_cron_job_list_t *v1_cron_job_list_parseFromJSON(cJSON *v1_cron_job_listJSON){
// v1_cron_job_list->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_cron_job_listJSON, "metadata");
v1_list_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive
}

View File

@@ -129,6 +129,9 @@ v1_cron_job_spec_t *v1_cron_job_spec_parseFromJSON(cJSON *v1_cron_job_specJSON){
v1_cron_job_spec_t *v1_cron_job_spec_local_var = NULL;
// define the local variable for v1_cron_job_spec->job_template
v1_job_template_spec_t *job_template_local_nonprim = NULL;
// v1_cron_job_spec->concurrency_policy
cJSON *concurrency_policy = cJSON_GetObjectItemCaseSensitive(v1_cron_job_specJSON, "concurrencyPolicy");
if (concurrency_policy) {
@@ -153,7 +156,6 @@ v1_cron_job_spec_t *v1_cron_job_spec_parseFromJSON(cJSON *v1_cron_job_specJSON){
goto end;
}
v1_job_template_spec_t *job_template_local_nonprim = NULL;
job_template_local_nonprim = v1_job_template_spec_parseFromJSON(job_template); //nonprimitive

View File

@@ -106,6 +106,12 @@ v1_csi_driver_t *v1_csi_driver_parseFromJSON(cJSON *v1_csi_driverJSON){
v1_csi_driver_t *v1_csi_driver_local_var = NULL;
// define the local variable for v1_csi_driver->metadata
v1_object_meta_t *metadata_local_nonprim = NULL;
// define the local variable for v1_csi_driver->spec
v1_csi_driver_spec_t *spec_local_nonprim = NULL;
// v1_csi_driver->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_csi_driverJSON, "apiVersion");
if (api_version) {
@@ -126,7 +132,6 @@ v1_csi_driver_t *v1_csi_driver_parseFromJSON(cJSON *v1_csi_driverJSON){
// v1_csi_driver->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_csi_driverJSON, "metadata");
v1_object_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive
}
@@ -137,7 +142,6 @@ v1_csi_driver_t *v1_csi_driver_parseFromJSON(cJSON *v1_csi_driverJSON){
goto end;
}
v1_csi_driver_spec_t *spec_local_nonprim = NULL;
spec_local_nonprim = v1_csi_driver_spec_parseFromJSON(spec); //nonprimitive

View File

@@ -116,6 +116,9 @@ v1_csi_driver_list_t *v1_csi_driver_list_parseFromJSON(cJSON *v1_csi_driver_list
v1_csi_driver_list_t *v1_csi_driver_list_local_var = NULL;
// define the local variable for v1_csi_driver_list->metadata
v1_list_meta_t *metadata_local_nonprim = NULL;
// v1_csi_driver_list->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_csi_driver_listJSON, "apiVersion");
if (api_version) {
@@ -161,7 +164,6 @@ v1_csi_driver_list_t *v1_csi_driver_list_parseFromJSON(cJSON *v1_csi_driver_list
// v1_csi_driver_list->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_csi_driver_listJSON, "metadata");
v1_list_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive
}

View File

@@ -106,6 +106,12 @@ v1_csi_node_t *v1_csi_node_parseFromJSON(cJSON *v1_csi_nodeJSON){
v1_csi_node_t *v1_csi_node_local_var = NULL;
// define the local variable for v1_csi_node->metadata
v1_object_meta_t *metadata_local_nonprim = NULL;
// define the local variable for v1_csi_node->spec
v1_csi_node_spec_t *spec_local_nonprim = NULL;
// v1_csi_node->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_csi_nodeJSON, "apiVersion");
if (api_version) {
@@ -126,7 +132,6 @@ v1_csi_node_t *v1_csi_node_parseFromJSON(cJSON *v1_csi_nodeJSON){
// v1_csi_node->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_csi_nodeJSON, "metadata");
v1_object_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive
}
@@ -137,7 +142,6 @@ v1_csi_node_t *v1_csi_node_parseFromJSON(cJSON *v1_csi_nodeJSON){
goto end;
}
v1_csi_node_spec_t *spec_local_nonprim = NULL;
spec_local_nonprim = v1_csi_node_spec_parseFromJSON(spec); //nonprimitive

View File

@@ -115,9 +115,11 @@ v1_csi_node_driver_t *v1_csi_node_driver_parseFromJSON(cJSON *v1_csi_node_driver
v1_csi_node_driver_t *v1_csi_node_driver_local_var = NULL;
// define the local variable for v1_csi_node_driver->allocatable
v1_volume_node_resources_t *allocatable_local_nonprim = NULL;
// v1_csi_node_driver->allocatable
cJSON *allocatable = cJSON_GetObjectItemCaseSensitive(v1_csi_node_driverJSON, "allocatable");
v1_volume_node_resources_t *allocatable_local_nonprim = NULL;
if (allocatable) {
allocatable_local_nonprim = v1_volume_node_resources_parseFromJSON(allocatable); //nonprimitive
}

View File

@@ -116,6 +116,9 @@ v1_csi_node_list_t *v1_csi_node_list_parseFromJSON(cJSON *v1_csi_node_listJSON){
v1_csi_node_list_t *v1_csi_node_list_local_var = NULL;
// define the local variable for v1_csi_node_list->metadata
v1_list_meta_t *metadata_local_nonprim = NULL;
// v1_csi_node_list->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_csi_node_listJSON, "apiVersion");
if (api_version) {
@@ -161,7 +164,6 @@ v1_csi_node_list_t *v1_csi_node_list_parseFromJSON(cJSON *v1_csi_node_listJSON){
// v1_csi_node_list->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_csi_node_listJSON, "metadata");
v1_list_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive
}

View File

@@ -202,16 +202,26 @@ v1_csi_persistent_volume_source_t *v1_csi_persistent_volume_source_parseFromJSON
v1_csi_persistent_volume_source_t *v1_csi_persistent_volume_source_local_var = NULL;
// define the local variable for v1_csi_persistent_volume_source->controller_expand_secret_ref
v1_secret_reference_t *controller_expand_secret_ref_local_nonprim = NULL;
// define the local variable for v1_csi_persistent_volume_source->controller_publish_secret_ref
v1_secret_reference_t *controller_publish_secret_ref_local_nonprim = NULL;
// define the local variable for v1_csi_persistent_volume_source->node_publish_secret_ref
v1_secret_reference_t *node_publish_secret_ref_local_nonprim = NULL;
// define the local variable for v1_csi_persistent_volume_source->node_stage_secret_ref
v1_secret_reference_t *node_stage_secret_ref_local_nonprim = NULL;
// v1_csi_persistent_volume_source->controller_expand_secret_ref
cJSON *controller_expand_secret_ref = cJSON_GetObjectItemCaseSensitive(v1_csi_persistent_volume_sourceJSON, "controllerExpandSecretRef");
v1_secret_reference_t *controller_expand_secret_ref_local_nonprim = NULL;
if (controller_expand_secret_ref) {
controller_expand_secret_ref_local_nonprim = v1_secret_reference_parseFromJSON(controller_expand_secret_ref); //nonprimitive
}
// v1_csi_persistent_volume_source->controller_publish_secret_ref
cJSON *controller_publish_secret_ref = cJSON_GetObjectItemCaseSensitive(v1_csi_persistent_volume_sourceJSON, "controllerPublishSecretRef");
v1_secret_reference_t *controller_publish_secret_ref_local_nonprim = NULL;
if (controller_publish_secret_ref) {
controller_publish_secret_ref_local_nonprim = v1_secret_reference_parseFromJSON(controller_publish_secret_ref); //nonprimitive
}
@@ -239,14 +249,12 @@ v1_csi_persistent_volume_source_t *v1_csi_persistent_volume_source_parseFromJSON
// v1_csi_persistent_volume_source->node_publish_secret_ref
cJSON *node_publish_secret_ref = cJSON_GetObjectItemCaseSensitive(v1_csi_persistent_volume_sourceJSON, "nodePublishSecretRef");
v1_secret_reference_t *node_publish_secret_ref_local_nonprim = NULL;
if (node_publish_secret_ref) {
node_publish_secret_ref_local_nonprim = v1_secret_reference_parseFromJSON(node_publish_secret_ref); //nonprimitive
}
// v1_csi_persistent_volume_source->node_stage_secret_ref
cJSON *node_stage_secret_ref = cJSON_GetObjectItemCaseSensitive(v1_csi_persistent_volume_sourceJSON, "nodeStageSecretRef");
v1_secret_reference_t *node_stage_secret_ref_local_nonprim = NULL;
if (node_stage_secret_ref) {
node_stage_secret_ref_local_nonprim = v1_secret_reference_parseFromJSON(node_stage_secret_ref); //nonprimitive
}

View File

@@ -129,6 +129,9 @@ v1_csi_volume_source_t *v1_csi_volume_source_parseFromJSON(cJSON *v1_csi_volume_
v1_csi_volume_source_t *v1_csi_volume_source_local_var = NULL;
// define the local variable for v1_csi_volume_source->node_publish_secret_ref
v1_local_object_reference_t *node_publish_secret_ref_local_nonprim = NULL;
// v1_csi_volume_source->driver
cJSON *driver = cJSON_GetObjectItemCaseSensitive(v1_csi_volume_sourceJSON, "driver");
if (!driver) {
@@ -152,7 +155,6 @@ v1_csi_volume_source_t *v1_csi_volume_source_parseFromJSON(cJSON *v1_csi_volume_
// v1_csi_volume_source->node_publish_secret_ref
cJSON *node_publish_secret_ref = cJSON_GetObjectItemCaseSensitive(v1_csi_volume_sourceJSON, "nodePublishSecretRef");
v1_local_object_reference_t *node_publish_secret_ref_local_nonprim = NULL;
if (node_publish_secret_ref) {
node_publish_secret_ref_local_nonprim = v1_local_object_reference_parseFromJSON(node_publish_secret_ref); //nonprimitive
}

View File

@@ -73,6 +73,9 @@ v1_custom_resource_conversion_t *v1_custom_resource_conversion_parseFromJSON(cJS
v1_custom_resource_conversion_t *v1_custom_resource_conversion_local_var = NULL;
// define the local variable for v1_custom_resource_conversion->webhook
v1_webhook_conversion_t *webhook_local_nonprim = NULL;
// v1_custom_resource_conversion->strategy
cJSON *strategy = cJSON_GetObjectItemCaseSensitive(v1_custom_resource_conversionJSON, "strategy");
if (!strategy) {
@@ -87,7 +90,6 @@ v1_custom_resource_conversion_t *v1_custom_resource_conversion_parseFromJSON(cJS
// v1_custom_resource_conversion->webhook
cJSON *webhook = cJSON_GetObjectItemCaseSensitive(v1_custom_resource_conversionJSON, "webhook");
v1_webhook_conversion_t *webhook_local_nonprim = NULL;
if (webhook) {
webhook_local_nonprim = v1_webhook_conversion_parseFromJSON(webhook); //nonprimitive
}

View File

@@ -125,6 +125,15 @@ v1_custom_resource_definition_t *v1_custom_resource_definition_parseFromJSON(cJS
v1_custom_resource_definition_t *v1_custom_resource_definition_local_var = NULL;
// define the local variable for v1_custom_resource_definition->metadata
v1_object_meta_t *metadata_local_nonprim = NULL;
// define the local variable for v1_custom_resource_definition->spec
v1_custom_resource_definition_spec_t *spec_local_nonprim = NULL;
// define the local variable for v1_custom_resource_definition->status
v1_custom_resource_definition_status_t *status_local_nonprim = NULL;
// v1_custom_resource_definition->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_custom_resource_definitionJSON, "apiVersion");
if (api_version) {
@@ -145,7 +154,6 @@ v1_custom_resource_definition_t *v1_custom_resource_definition_parseFromJSON(cJS
// v1_custom_resource_definition->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_custom_resource_definitionJSON, "metadata");
v1_object_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive
}
@@ -156,13 +164,11 @@ v1_custom_resource_definition_t *v1_custom_resource_definition_parseFromJSON(cJS
goto end;
}
v1_custom_resource_definition_spec_t *spec_local_nonprim = NULL;
spec_local_nonprim = v1_custom_resource_definition_spec_parseFromJSON(spec); //nonprimitive
// v1_custom_resource_definition->status
cJSON *status = cJSON_GetObjectItemCaseSensitive(v1_custom_resource_definitionJSON, "status");
v1_custom_resource_definition_status_t *status_local_nonprim = NULL;
if (status) {
status_local_nonprim = v1_custom_resource_definition_status_parseFromJSON(status); //nonprimitive
}

View File

@@ -116,6 +116,9 @@ v1_custom_resource_definition_list_t *v1_custom_resource_definition_list_parseFr
v1_custom_resource_definition_list_t *v1_custom_resource_definition_list_local_var = NULL;
// define the local variable for v1_custom_resource_definition_list->metadata
v1_list_meta_t *metadata_local_nonprim = NULL;
// v1_custom_resource_definition_list->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_custom_resource_definition_listJSON, "apiVersion");
if (api_version) {
@@ -161,7 +164,6 @@ v1_custom_resource_definition_list_t *v1_custom_resource_definition_list_parseFr
// v1_custom_resource_definition_list->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_custom_resource_definition_listJSON, "metadata");
v1_list_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive
}

View File

@@ -151,9 +151,14 @@ v1_custom_resource_definition_spec_t *v1_custom_resource_definition_spec_parseFr
v1_custom_resource_definition_spec_t *v1_custom_resource_definition_spec_local_var = NULL;
// define the local variable for v1_custom_resource_definition_spec->conversion
v1_custom_resource_conversion_t *conversion_local_nonprim = NULL;
// define the local variable for v1_custom_resource_definition_spec->names
v1_custom_resource_definition_names_t *names_local_nonprim = NULL;
// v1_custom_resource_definition_spec->conversion
cJSON *conversion = cJSON_GetObjectItemCaseSensitive(v1_custom_resource_definition_specJSON, "conversion");
v1_custom_resource_conversion_t *conversion_local_nonprim = NULL;
if (conversion) {
conversion_local_nonprim = v1_custom_resource_conversion_parseFromJSON(conversion); //nonprimitive
}
@@ -176,7 +181,6 @@ v1_custom_resource_definition_spec_t *v1_custom_resource_definition_spec_parseFr
goto end;
}
v1_custom_resource_definition_names_t *names_local_nonprim = NULL;
names_local_nonprim = v1_custom_resource_definition_names_parseFromJSON(names); //nonprimitive

View File

@@ -112,9 +112,11 @@ v1_custom_resource_definition_status_t *v1_custom_resource_definition_status_par
v1_custom_resource_definition_status_t *v1_custom_resource_definition_status_local_var = NULL;
// define the local variable for v1_custom_resource_definition_status->accepted_names
v1_custom_resource_definition_names_t *accepted_names_local_nonprim = NULL;
// v1_custom_resource_definition_status->accepted_names
cJSON *accepted_names = cJSON_GetObjectItemCaseSensitive(v1_custom_resource_definition_statusJSON, "acceptedNames");
v1_custom_resource_definition_names_t *accepted_names_local_nonprim = NULL;
if (accepted_names) {
accepted_names_local_nonprim = v1_custom_resource_definition_names_parseFromJSON(accepted_names); //nonprimitive
}

View File

@@ -169,6 +169,12 @@ v1_custom_resource_definition_version_t *v1_custom_resource_definition_version_p
v1_custom_resource_definition_version_t *v1_custom_resource_definition_version_local_var = NULL;
// define the local variable for v1_custom_resource_definition_version->schema
v1_custom_resource_validation_t *schema_local_nonprim = NULL;
// define the local variable for v1_custom_resource_definition_version->subresources
v1_custom_resource_subresources_t *subresources_local_nonprim = NULL;
// v1_custom_resource_definition_version->additional_printer_columns
cJSON *additional_printer_columns = cJSON_GetObjectItemCaseSensitive(v1_custom_resource_definition_versionJSON, "additionalPrinterColumns");
list_t *additional_printer_columnsList;
@@ -223,7 +229,6 @@ v1_custom_resource_definition_version_t *v1_custom_resource_definition_version_p
// v1_custom_resource_definition_version->schema
cJSON *schema = cJSON_GetObjectItemCaseSensitive(v1_custom_resource_definition_versionJSON, "schema");
v1_custom_resource_validation_t *schema_local_nonprim = NULL;
if (schema) {
schema_local_nonprim = v1_custom_resource_validation_parseFromJSON(schema); //nonprimitive
}
@@ -254,7 +259,6 @@ v1_custom_resource_definition_version_t *v1_custom_resource_definition_version_p
// v1_custom_resource_definition_version->subresources
cJSON *subresources = cJSON_GetObjectItemCaseSensitive(v1_custom_resource_definition_versionJSON, "subresources");
v1_custom_resource_subresources_t *subresources_local_nonprim = NULL;
if (subresources) {
subresources_local_nonprim = v1_custom_resource_subresources_parseFromJSON(subresources); //nonprimitive
}

View File

@@ -76,9 +76,11 @@ v1_custom_resource_subresources_t *v1_custom_resource_subresources_parseFromJSON
v1_custom_resource_subresources_t *v1_custom_resource_subresources_local_var = NULL;
// define the local variable for v1_custom_resource_subresources->scale
v1_custom_resource_subresource_scale_t *scale_local_nonprim = NULL;
// v1_custom_resource_subresources->scale
cJSON *scale = cJSON_GetObjectItemCaseSensitive(v1_custom_resource_subresourcesJSON, "scale");
v1_custom_resource_subresource_scale_t *scale_local_nonprim = NULL;
if (scale) {
scale_local_nonprim = v1_custom_resource_subresource_scale_parseFromJSON(scale); //nonprimitive
}

View File

@@ -57,9 +57,11 @@ v1_custom_resource_validation_t *v1_custom_resource_validation_parseFromJSON(cJS
v1_custom_resource_validation_t *v1_custom_resource_validation_local_var = NULL;
// define the local variable for v1_custom_resource_validation->open_apiv3_schema
v1_json_schema_props_t *open_apiv3_schema_local_nonprim = NULL;
// v1_custom_resource_validation->open_apiv3_schema
cJSON *open_apiv3_schema = cJSON_GetObjectItemCaseSensitive(v1_custom_resource_validationJSON, "openAPIV3Schema");
v1_json_schema_props_t *open_apiv3_schema_local_nonprim = NULL;
if (open_apiv3_schema) {
open_apiv3_schema_local_nonprim = v1_json_schema_props_parseFromJSON(open_apiv3_schema); //nonprimitive
}

View File

@@ -123,6 +123,15 @@ v1_daemon_set_t *v1_daemon_set_parseFromJSON(cJSON *v1_daemon_setJSON){
v1_daemon_set_t *v1_daemon_set_local_var = NULL;
// define the local variable for v1_daemon_set->metadata
v1_object_meta_t *metadata_local_nonprim = NULL;
// define the local variable for v1_daemon_set->spec
v1_daemon_set_spec_t *spec_local_nonprim = NULL;
// define the local variable for v1_daemon_set->status
v1_daemon_set_status_t *status_local_nonprim = NULL;
// v1_daemon_set->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_daemon_setJSON, "apiVersion");
if (api_version) {
@@ -143,21 +152,18 @@ v1_daemon_set_t *v1_daemon_set_parseFromJSON(cJSON *v1_daemon_setJSON){
// v1_daemon_set->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_daemon_setJSON, "metadata");
v1_object_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive
}
// v1_daemon_set->spec
cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1_daemon_setJSON, "spec");
v1_daemon_set_spec_t *spec_local_nonprim = NULL;
if (spec) {
spec_local_nonprim = v1_daemon_set_spec_parseFromJSON(spec); //nonprimitive
}
// v1_daemon_set->status
cJSON *status = cJSON_GetObjectItemCaseSensitive(v1_daemon_setJSON, "status");
v1_daemon_set_status_t *status_local_nonprim = NULL;
if (status) {
status_local_nonprim = v1_daemon_set_status_parseFromJSON(status); //nonprimitive
}

View File

@@ -116,6 +116,9 @@ v1_daemon_set_list_t *v1_daemon_set_list_parseFromJSON(cJSON *v1_daemon_set_list
v1_daemon_set_list_t *v1_daemon_set_list_local_var = NULL;
// define the local variable for v1_daemon_set_list->metadata
v1_list_meta_t *metadata_local_nonprim = NULL;
// v1_daemon_set_list->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_daemon_set_listJSON, "apiVersion");
if (api_version) {
@@ -161,7 +164,6 @@ v1_daemon_set_list_t *v1_daemon_set_list_parseFromJSON(cJSON *v1_daemon_set_list
// v1_daemon_set_list->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_daemon_set_listJSON, "metadata");
v1_list_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive
}

View File

@@ -119,6 +119,15 @@ v1_daemon_set_spec_t *v1_daemon_set_spec_parseFromJSON(cJSON *v1_daemon_set_spec
v1_daemon_set_spec_t *v1_daemon_set_spec_local_var = NULL;
// define the local variable for v1_daemon_set_spec->selector
v1_label_selector_t *selector_local_nonprim = NULL;
// define the local variable for v1_daemon_set_spec->_template
v1_pod_template_spec_t *_template_local_nonprim = NULL;
// define the local variable for v1_daemon_set_spec->update_strategy
v1_daemon_set_update_strategy_t *update_strategy_local_nonprim = NULL;
// v1_daemon_set_spec->min_ready_seconds
cJSON *min_ready_seconds = cJSON_GetObjectItemCaseSensitive(v1_daemon_set_specJSON, "minReadySeconds");
if (min_ready_seconds) {
@@ -143,7 +152,6 @@ v1_daemon_set_spec_t *v1_daemon_set_spec_parseFromJSON(cJSON *v1_daemon_set_spec
goto end;
}
v1_label_selector_t *selector_local_nonprim = NULL;
selector_local_nonprim = v1_label_selector_parseFromJSON(selector); //nonprimitive
@@ -153,13 +161,11 @@ v1_daemon_set_spec_t *v1_daemon_set_spec_parseFromJSON(cJSON *v1_daemon_set_spec
goto end;
}
v1_pod_template_spec_t *_template_local_nonprim = NULL;
_template_local_nonprim = v1_pod_template_spec_parseFromJSON(_template); //nonprimitive
// v1_daemon_set_spec->update_strategy
cJSON *update_strategy = cJSON_GetObjectItemCaseSensitive(v1_daemon_set_specJSON, "updateStrategy");
v1_daemon_set_update_strategy_t *update_strategy_local_nonprim = NULL;
if (update_strategy) {
update_strategy_local_nonprim = v1_daemon_set_update_strategy_parseFromJSON(update_strategy); //nonprimitive
}

View File

@@ -71,9 +71,11 @@ v1_daemon_set_update_strategy_t *v1_daemon_set_update_strategy_parseFromJSON(cJS
v1_daemon_set_update_strategy_t *v1_daemon_set_update_strategy_local_var = NULL;
// define the local variable for v1_daemon_set_update_strategy->rolling_update
v1_rolling_update_daemon_set_t *rolling_update_local_nonprim = NULL;
// v1_daemon_set_update_strategy->rolling_update
cJSON *rolling_update = cJSON_GetObjectItemCaseSensitive(v1_daemon_set_update_strategyJSON, "rollingUpdate");
v1_rolling_update_daemon_set_t *rolling_update_local_nonprim = NULL;
if (rolling_update) {
rolling_update_local_nonprim = v1_rolling_update_daemon_set_parseFromJSON(rolling_update); //nonprimitive
}

View File

@@ -145,6 +145,9 @@ v1_delete_options_t *v1_delete_options_parseFromJSON(cJSON *v1_delete_optionsJSO
v1_delete_options_t *v1_delete_options_local_var = NULL;
// define the local variable for v1_delete_options->preconditions
v1_preconditions_t *preconditions_local_nonprim = NULL;
// v1_delete_options->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_delete_optionsJSON, "apiVersion");
if (api_version) {
@@ -203,7 +206,6 @@ v1_delete_options_t *v1_delete_options_parseFromJSON(cJSON *v1_delete_optionsJSO
// v1_delete_options->preconditions
cJSON *preconditions = cJSON_GetObjectItemCaseSensitive(v1_delete_optionsJSON, "preconditions");
v1_preconditions_t *preconditions_local_nonprim = NULL;
if (preconditions) {
preconditions_local_nonprim = v1_preconditions_parseFromJSON(preconditions); //nonprimitive
}

View File

@@ -123,6 +123,15 @@ v1_deployment_t *v1_deployment_parseFromJSON(cJSON *v1_deploymentJSON){
v1_deployment_t *v1_deployment_local_var = NULL;
// define the local variable for v1_deployment->metadata
v1_object_meta_t *metadata_local_nonprim = NULL;
// define the local variable for v1_deployment->spec
v1_deployment_spec_t *spec_local_nonprim = NULL;
// define the local variable for v1_deployment->status
v1_deployment_status_t *status_local_nonprim = NULL;
// v1_deployment->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_deploymentJSON, "apiVersion");
if (api_version) {
@@ -143,21 +152,18 @@ v1_deployment_t *v1_deployment_parseFromJSON(cJSON *v1_deploymentJSON){
// v1_deployment->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_deploymentJSON, "metadata");
v1_object_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive
}
// v1_deployment->spec
cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1_deploymentJSON, "spec");
v1_deployment_spec_t *spec_local_nonprim = NULL;
if (spec) {
spec_local_nonprim = v1_deployment_spec_parseFromJSON(spec); //nonprimitive
}
// v1_deployment->status
cJSON *status = cJSON_GetObjectItemCaseSensitive(v1_deploymentJSON, "status");
v1_deployment_status_t *status_local_nonprim = NULL;
if (status) {
status_local_nonprim = v1_deployment_status_parseFromJSON(status); //nonprimitive
}

View File

@@ -116,6 +116,9 @@ v1_deployment_list_t *v1_deployment_list_parseFromJSON(cJSON *v1_deployment_list
v1_deployment_list_t *v1_deployment_list_local_var = NULL;
// define the local variable for v1_deployment_list->metadata
v1_list_meta_t *metadata_local_nonprim = NULL;
// v1_deployment_list->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_deployment_listJSON, "apiVersion");
if (api_version) {
@@ -161,7 +164,6 @@ v1_deployment_list_t *v1_deployment_list_parseFromJSON(cJSON *v1_deployment_list
// v1_deployment_list->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_deployment_listJSON, "metadata");
v1_list_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive
}

View File

@@ -149,6 +149,15 @@ v1_deployment_spec_t *v1_deployment_spec_parseFromJSON(cJSON *v1_deployment_spec
v1_deployment_spec_t *v1_deployment_spec_local_var = NULL;
// define the local variable for v1_deployment_spec->selector
v1_label_selector_t *selector_local_nonprim = NULL;
// define the local variable for v1_deployment_spec->strategy
v1_deployment_strategy_t *strategy_local_nonprim = NULL;
// define the local variable for v1_deployment_spec->_template
v1_pod_template_spec_t *_template_local_nonprim = NULL;
// v1_deployment_spec->min_ready_seconds
cJSON *min_ready_seconds = cJSON_GetObjectItemCaseSensitive(v1_deployment_specJSON, "minReadySeconds");
if (min_ready_seconds) {
@@ -200,13 +209,11 @@ v1_deployment_spec_t *v1_deployment_spec_parseFromJSON(cJSON *v1_deployment_spec
goto end;
}
v1_label_selector_t *selector_local_nonprim = NULL;
selector_local_nonprim = v1_label_selector_parseFromJSON(selector); //nonprimitive
// v1_deployment_spec->strategy
cJSON *strategy = cJSON_GetObjectItemCaseSensitive(v1_deployment_specJSON, "strategy");
v1_deployment_strategy_t *strategy_local_nonprim = NULL;
if (strategy) {
strategy_local_nonprim = v1_deployment_strategy_parseFromJSON(strategy); //nonprimitive
}
@@ -217,7 +224,6 @@ v1_deployment_spec_t *v1_deployment_spec_parseFromJSON(cJSON *v1_deployment_spec
goto end;
}
v1_pod_template_spec_t *_template_local_nonprim = NULL;
_template_local_nonprim = v1_pod_template_spec_parseFromJSON(_template); //nonprimitive

View File

@@ -71,9 +71,11 @@ v1_deployment_strategy_t *v1_deployment_strategy_parseFromJSON(cJSON *v1_deploym
v1_deployment_strategy_t *v1_deployment_strategy_local_var = NULL;
// define the local variable for v1_deployment_strategy->rolling_update
v1_rolling_update_deployment_t *rolling_update_local_nonprim = NULL;
// v1_deployment_strategy->rolling_update
cJSON *rolling_update = cJSON_GetObjectItemCaseSensitive(v1_deployment_strategyJSON, "rollingUpdate");
v1_rolling_update_deployment_t *rolling_update_local_nonprim = NULL;
if (rolling_update) {
rolling_update_local_nonprim = v1_rolling_update_deployment_parseFromJSON(rolling_update); //nonprimitive
}

View File

@@ -102,9 +102,14 @@ v1_downward_api_volume_file_t *v1_downward_api_volume_file_parseFromJSON(cJSON *
v1_downward_api_volume_file_t *v1_downward_api_volume_file_local_var = NULL;
// define the local variable for v1_downward_api_volume_file->field_ref
v1_object_field_selector_t *field_ref_local_nonprim = NULL;
// define the local variable for v1_downward_api_volume_file->resource_field_ref
v1_resource_field_selector_t *resource_field_ref_local_nonprim = NULL;
// v1_downward_api_volume_file->field_ref
cJSON *field_ref = cJSON_GetObjectItemCaseSensitive(v1_downward_api_volume_fileJSON, "fieldRef");
v1_object_field_selector_t *field_ref_local_nonprim = NULL;
if (field_ref) {
field_ref_local_nonprim = v1_object_field_selector_parseFromJSON(field_ref); //nonprimitive
}
@@ -132,7 +137,6 @@ v1_downward_api_volume_file_t *v1_downward_api_volume_file_parseFromJSON(cJSON *
// v1_downward_api_volume_file->resource_field_ref
cJSON *resource_field_ref = cJSON_GetObjectItemCaseSensitive(v1_downward_api_volume_fileJSON, "resourceFieldRef");
v1_resource_field_selector_t *resource_field_ref_local_nonprim = NULL;
if (resource_field_ref) {
resource_field_ref_local_nonprim = v1_resource_field_selector_parseFromJSON(resource_field_ref); //nonprimitive
}

View File

@@ -197,6 +197,15 @@ v1_endpoint_t *v1_endpoint_parseFromJSON(cJSON *v1_endpointJSON){
v1_endpoint_t *v1_endpoint_local_var = NULL;
// define the local variable for v1_endpoint->conditions
v1_endpoint_conditions_t *conditions_local_nonprim = NULL;
// define the local variable for v1_endpoint->hints
v1_endpoint_hints_t *hints_local_nonprim = NULL;
// define the local variable for v1_endpoint->target_ref
v1_object_reference_t *target_ref_local_nonprim = NULL;
// v1_endpoint->addresses
cJSON *addresses = cJSON_GetObjectItemCaseSensitive(v1_endpointJSON, "addresses");
if (!addresses) {
@@ -222,7 +231,6 @@ v1_endpoint_t *v1_endpoint_parseFromJSON(cJSON *v1_endpointJSON){
// v1_endpoint->conditions
cJSON *conditions = cJSON_GetObjectItemCaseSensitive(v1_endpointJSON, "conditions");
v1_endpoint_conditions_t *conditions_local_nonprim = NULL;
if (conditions) {
conditions_local_nonprim = v1_endpoint_conditions_parseFromJSON(conditions); //nonprimitive
}
@@ -251,7 +259,6 @@ v1_endpoint_t *v1_endpoint_parseFromJSON(cJSON *v1_endpointJSON){
// v1_endpoint->hints
cJSON *hints = cJSON_GetObjectItemCaseSensitive(v1_endpointJSON, "hints");
v1_endpoint_hints_t *hints_local_nonprim = NULL;
if (hints) {
hints_local_nonprim = v1_endpoint_hints_parseFromJSON(hints); //nonprimitive
}
@@ -276,7 +283,6 @@ v1_endpoint_t *v1_endpoint_parseFromJSON(cJSON *v1_endpointJSON){
// v1_endpoint->target_ref
cJSON *target_ref = cJSON_GetObjectItemCaseSensitive(v1_endpointJSON, "targetRef");
v1_object_reference_t *target_ref_local_nonprim = NULL;
if (target_ref) {
target_ref_local_nonprim = v1_object_reference_parseFromJSON(target_ref); //nonprimitive
}

View File

@@ -101,6 +101,9 @@ v1_endpoint_address_t *v1_endpoint_address_parseFromJSON(cJSON *v1_endpoint_addr
v1_endpoint_address_t *v1_endpoint_address_local_var = NULL;
// define the local variable for v1_endpoint_address->target_ref
v1_object_reference_t *target_ref_local_nonprim = NULL;
// v1_endpoint_address->hostname
cJSON *hostname = cJSON_GetObjectItemCaseSensitive(v1_endpoint_addressJSON, "hostname");
if (hostname) {
@@ -133,7 +136,6 @@ v1_endpoint_address_t *v1_endpoint_address_parseFromJSON(cJSON *v1_endpoint_addr
// v1_endpoint_address->target_ref
cJSON *target_ref = cJSON_GetObjectItemCaseSensitive(v1_endpoint_addressJSON, "targetRef");
v1_object_reference_t *target_ref_local_nonprim = NULL;
if (target_ref) {
target_ref_local_nonprim = v1_object_reference_parseFromJSON(target_ref); //nonprimitive
}

View File

@@ -161,6 +161,9 @@ v1_endpoint_slice_t *v1_endpoint_slice_parseFromJSON(cJSON *v1_endpoint_sliceJSO
v1_endpoint_slice_t *v1_endpoint_slice_local_var = NULL;
// define the local variable for v1_endpoint_slice->metadata
v1_object_meta_t *metadata_local_nonprim = NULL;
// v1_endpoint_slice->address_type
cJSON *address_type = cJSON_GetObjectItemCaseSensitive(v1_endpoint_sliceJSON, "addressType");
if (!address_type) {
@@ -218,7 +221,6 @@ v1_endpoint_slice_t *v1_endpoint_slice_parseFromJSON(cJSON *v1_endpoint_sliceJSO
// v1_endpoint_slice->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_endpoint_sliceJSON, "metadata");
v1_object_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive
}

View File

@@ -116,6 +116,9 @@ v1_endpoint_slice_list_t *v1_endpoint_slice_list_parseFromJSON(cJSON *v1_endpoin
v1_endpoint_slice_list_t *v1_endpoint_slice_list_local_var = NULL;
// define the local variable for v1_endpoint_slice_list->metadata
v1_list_meta_t *metadata_local_nonprim = NULL;
// v1_endpoint_slice_list->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_endpoint_slice_listJSON, "apiVersion");
if (api_version) {
@@ -161,7 +164,6 @@ v1_endpoint_slice_list_t *v1_endpoint_slice_list_parseFromJSON(cJSON *v1_endpoin
// v1_endpoint_slice_list->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_endpoint_slice_listJSON, "metadata");
v1_list_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive
}

View File

@@ -114,6 +114,9 @@ v1_endpoints_t *v1_endpoints_parseFromJSON(cJSON *v1_endpointsJSON){
v1_endpoints_t *v1_endpoints_local_var = NULL;
// define the local variable for v1_endpoints->metadata
v1_object_meta_t *metadata_local_nonprim = NULL;
// v1_endpoints->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_endpointsJSON, "apiVersion");
if (api_version) {
@@ -134,7 +137,6 @@ v1_endpoints_t *v1_endpoints_parseFromJSON(cJSON *v1_endpointsJSON){
// v1_endpoints->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_endpointsJSON, "metadata");
v1_object_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive
}

View File

@@ -116,6 +116,9 @@ v1_endpoints_list_t *v1_endpoints_list_parseFromJSON(cJSON *v1_endpoints_listJSO
v1_endpoints_list_t *v1_endpoints_list_local_var = NULL;
// define the local variable for v1_endpoints_list->metadata
v1_list_meta_t *metadata_local_nonprim = NULL;
// v1_endpoints_list->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_endpoints_listJSON, "apiVersion");
if (api_version) {
@@ -161,7 +164,6 @@ v1_endpoints_list_t *v1_endpoints_list_parseFromJSON(cJSON *v1_endpoints_listJSO
// v1_endpoints_list->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_endpoints_listJSON, "metadata");
v1_list_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive
}

View File

@@ -90,9 +90,14 @@ v1_env_from_source_t *v1_env_from_source_parseFromJSON(cJSON *v1_env_from_source
v1_env_from_source_t *v1_env_from_source_local_var = NULL;
// define the local variable for v1_env_from_source->config_map_ref
v1_config_map_env_source_t *config_map_ref_local_nonprim = NULL;
// define the local variable for v1_env_from_source->secret_ref
v1_secret_env_source_t *secret_ref_local_nonprim = NULL;
// v1_env_from_source->config_map_ref
cJSON *config_map_ref = cJSON_GetObjectItemCaseSensitive(v1_env_from_sourceJSON, "configMapRef");
v1_config_map_env_source_t *config_map_ref_local_nonprim = NULL;
if (config_map_ref) {
config_map_ref_local_nonprim = v1_config_map_env_source_parseFromJSON(config_map_ref); //nonprimitive
}
@@ -108,7 +113,6 @@ v1_env_from_source_t *v1_env_from_source_parseFromJSON(cJSON *v1_env_from_source
// v1_env_from_source->secret_ref
cJSON *secret_ref = cJSON_GetObjectItemCaseSensitive(v1_env_from_sourceJSON, "secretRef");
v1_secret_env_source_t *secret_ref_local_nonprim = NULL;
if (secret_ref) {
secret_ref_local_nonprim = v1_secret_env_source_parseFromJSON(secret_ref); //nonprimitive
}

View File

@@ -87,6 +87,9 @@ v1_env_var_t *v1_env_var_parseFromJSON(cJSON *v1_env_varJSON){
v1_env_var_t *v1_env_var_local_var = NULL;
// define the local variable for v1_env_var->value_from
v1_env_var_source_t *value_from_local_nonprim = NULL;
// v1_env_var->name
cJSON *name = cJSON_GetObjectItemCaseSensitive(v1_env_varJSON, "name");
if (!name) {
@@ -110,7 +113,6 @@ v1_env_var_t *v1_env_var_parseFromJSON(cJSON *v1_env_varJSON){
// v1_env_var->value_from
cJSON *value_from = cJSON_GetObjectItemCaseSensitive(v1_env_varJSON, "valueFrom");
v1_env_var_source_t *value_from_local_nonprim = NULL;
if (value_from) {
value_from_local_nonprim = v1_env_var_source_parseFromJSON(value_from); //nonprimitive
}

View File

@@ -114,30 +114,38 @@ v1_env_var_source_t *v1_env_var_source_parseFromJSON(cJSON *v1_env_var_sourceJSO
v1_env_var_source_t *v1_env_var_source_local_var = NULL;
// define the local variable for v1_env_var_source->config_map_key_ref
v1_config_map_key_selector_t *config_map_key_ref_local_nonprim = NULL;
// define the local variable for v1_env_var_source->field_ref
v1_object_field_selector_t *field_ref_local_nonprim = NULL;
// define the local variable for v1_env_var_source->resource_field_ref
v1_resource_field_selector_t *resource_field_ref_local_nonprim = NULL;
// define the local variable for v1_env_var_source->secret_key_ref
v1_secret_key_selector_t *secret_key_ref_local_nonprim = NULL;
// v1_env_var_source->config_map_key_ref
cJSON *config_map_key_ref = cJSON_GetObjectItemCaseSensitive(v1_env_var_sourceJSON, "configMapKeyRef");
v1_config_map_key_selector_t *config_map_key_ref_local_nonprim = NULL;
if (config_map_key_ref) {
config_map_key_ref_local_nonprim = v1_config_map_key_selector_parseFromJSON(config_map_key_ref); //nonprimitive
}
// v1_env_var_source->field_ref
cJSON *field_ref = cJSON_GetObjectItemCaseSensitive(v1_env_var_sourceJSON, "fieldRef");
v1_object_field_selector_t *field_ref_local_nonprim = NULL;
if (field_ref) {
field_ref_local_nonprim = v1_object_field_selector_parseFromJSON(field_ref); //nonprimitive
}
// v1_env_var_source->resource_field_ref
cJSON *resource_field_ref = cJSON_GetObjectItemCaseSensitive(v1_env_var_sourceJSON, "resourceFieldRef");
v1_resource_field_selector_t *resource_field_ref_local_nonprim = NULL;
if (resource_field_ref) {
resource_field_ref_local_nonprim = v1_resource_field_selector_parseFromJSON(resource_field_ref); //nonprimitive
}
// v1_env_var_source->secret_key_ref
cJSON *secret_key_ref = cJSON_GetObjectItemCaseSensitive(v1_env_var_sourceJSON, "secretKeyRef");
v1_secret_key_selector_t *secret_key_ref_local_nonprim = NULL;
if (secret_key_ref) {
secret_key_ref_local_nonprim = v1_secret_key_selector_parseFromJSON(secret_key_ref); //nonprimitive
}

View File

@@ -479,6 +479,24 @@ v1_ephemeral_container_t *v1_ephemeral_container_parseFromJSON(cJSON *v1_ephemer
v1_ephemeral_container_t *v1_ephemeral_container_local_var = NULL;
// define the local variable for v1_ephemeral_container->lifecycle
v1_lifecycle_t *lifecycle_local_nonprim = NULL;
// define the local variable for v1_ephemeral_container->liveness_probe
v1_probe_t *liveness_probe_local_nonprim = NULL;
// define the local variable for v1_ephemeral_container->readiness_probe
v1_probe_t *readiness_probe_local_nonprim = NULL;
// define the local variable for v1_ephemeral_container->resources
v1_resource_requirements_t *resources_local_nonprim = NULL;
// define the local variable for v1_ephemeral_container->security_context
v1_security_context_t *security_context_local_nonprim = NULL;
// define the local variable for v1_ephemeral_container->startup_probe
v1_probe_t *startup_probe_local_nonprim = NULL;
// v1_ephemeral_container->args
cJSON *args = cJSON_GetObjectItemCaseSensitive(v1_ephemeral_containerJSON, "args");
list_t *argsList;
@@ -583,14 +601,12 @@ v1_ephemeral_container_t *v1_ephemeral_container_parseFromJSON(cJSON *v1_ephemer
// v1_ephemeral_container->lifecycle
cJSON *lifecycle = cJSON_GetObjectItemCaseSensitive(v1_ephemeral_containerJSON, "lifecycle");
v1_lifecycle_t *lifecycle_local_nonprim = NULL;
if (lifecycle) {
lifecycle_local_nonprim = v1_lifecycle_parseFromJSON(lifecycle); //nonprimitive
}
// v1_ephemeral_container->liveness_probe
cJSON *liveness_probe = cJSON_GetObjectItemCaseSensitive(v1_ephemeral_containerJSON, "livenessProbe");
v1_probe_t *liveness_probe_local_nonprim = NULL;
if (liveness_probe) {
liveness_probe_local_nonprim = v1_probe_parseFromJSON(liveness_probe); //nonprimitive
}
@@ -631,28 +647,24 @@ v1_ephemeral_container_t *v1_ephemeral_container_parseFromJSON(cJSON *v1_ephemer
// v1_ephemeral_container->readiness_probe
cJSON *readiness_probe = cJSON_GetObjectItemCaseSensitive(v1_ephemeral_containerJSON, "readinessProbe");
v1_probe_t *readiness_probe_local_nonprim = NULL;
if (readiness_probe) {
readiness_probe_local_nonprim = v1_probe_parseFromJSON(readiness_probe); //nonprimitive
}
// v1_ephemeral_container->resources
cJSON *resources = cJSON_GetObjectItemCaseSensitive(v1_ephemeral_containerJSON, "resources");
v1_resource_requirements_t *resources_local_nonprim = NULL;
if (resources) {
resources_local_nonprim = v1_resource_requirements_parseFromJSON(resources); //nonprimitive
}
// v1_ephemeral_container->security_context
cJSON *security_context = cJSON_GetObjectItemCaseSensitive(v1_ephemeral_containerJSON, "securityContext");
v1_security_context_t *security_context_local_nonprim = NULL;
if (security_context) {
security_context_local_nonprim = v1_security_context_parseFromJSON(security_context); //nonprimitive
}
// v1_ephemeral_container->startup_probe
cJSON *startup_probe = cJSON_GetObjectItemCaseSensitive(v1_ephemeral_containerJSON, "startupProbe");
v1_probe_t *startup_probe_local_nonprim = NULL;
if (startup_probe) {
startup_probe_local_nonprim = v1_probe_parseFromJSON(startup_probe); //nonprimitive
}

View File

@@ -57,9 +57,11 @@ v1_ephemeral_volume_source_t *v1_ephemeral_volume_source_parseFromJSON(cJSON *v1
v1_ephemeral_volume_source_t *v1_ephemeral_volume_source_local_var = NULL;
// define the local variable for v1_ephemeral_volume_source->volume_claim_template
v1_persistent_volume_claim_template_t *volume_claim_template_local_nonprim = NULL;
// v1_ephemeral_volume_source->volume_claim_template
cJSON *volume_claim_template = cJSON_GetObjectItemCaseSensitive(v1_ephemeral_volume_sourceJSON, "volumeClaimTemplate");
v1_persistent_volume_claim_template_t *volume_claim_template_local_nonprim = NULL;
if (volume_claim_template) {
volume_claim_template_local_nonprim = v1_persistent_volume_claim_template_parseFromJSON(volume_claim_template); //nonprimitive
}

View File

@@ -104,6 +104,12 @@ v1_eviction_t *v1_eviction_parseFromJSON(cJSON *v1_evictionJSON){
v1_eviction_t *v1_eviction_local_var = NULL;
// define the local variable for v1_eviction->delete_options
v1_delete_options_t *delete_options_local_nonprim = NULL;
// define the local variable for v1_eviction->metadata
v1_object_meta_t *metadata_local_nonprim = NULL;
// v1_eviction->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_evictionJSON, "apiVersion");
if (api_version) {
@@ -115,7 +121,6 @@ v1_eviction_t *v1_eviction_parseFromJSON(cJSON *v1_evictionJSON){
// v1_eviction->delete_options
cJSON *delete_options = cJSON_GetObjectItemCaseSensitive(v1_evictionJSON, "deleteOptions");
v1_delete_options_t *delete_options_local_nonprim = NULL;
if (delete_options) {
delete_options_local_nonprim = v1_delete_options_parseFromJSON(delete_options); //nonprimitive
}
@@ -131,7 +136,6 @@ v1_eviction_t *v1_eviction_parseFromJSON(cJSON *v1_evictionJSON){
// v1_eviction->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_evictionJSON, "metadata");
v1_object_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive
}

View File

@@ -129,6 +129,9 @@ v1_flex_persistent_volume_source_t *v1_flex_persistent_volume_source_parseFromJS
v1_flex_persistent_volume_source_t *v1_flex_persistent_volume_source_local_var = NULL;
// define the local variable for v1_flex_persistent_volume_source->secret_ref
v1_secret_reference_t *secret_ref_local_nonprim = NULL;
// v1_flex_persistent_volume_source->driver
cJSON *driver = cJSON_GetObjectItemCaseSensitive(v1_flex_persistent_volume_sourceJSON, "driver");
if (!driver) {
@@ -183,7 +186,6 @@ v1_flex_persistent_volume_source_t *v1_flex_persistent_volume_source_parseFromJS
// v1_flex_persistent_volume_source->secret_ref
cJSON *secret_ref = cJSON_GetObjectItemCaseSensitive(v1_flex_persistent_volume_sourceJSON, "secretRef");
v1_secret_reference_t *secret_ref_local_nonprim = NULL;
if (secret_ref) {
secret_ref_local_nonprim = v1_secret_reference_parseFromJSON(secret_ref); //nonprimitive
}

View File

@@ -129,6 +129,9 @@ v1_flex_volume_source_t *v1_flex_volume_source_parseFromJSON(cJSON *v1_flex_volu
v1_flex_volume_source_t *v1_flex_volume_source_local_var = NULL;
// define the local variable for v1_flex_volume_source->secret_ref
v1_local_object_reference_t *secret_ref_local_nonprim = NULL;
// v1_flex_volume_source->driver
cJSON *driver = cJSON_GetObjectItemCaseSensitive(v1_flex_volume_sourceJSON, "driver");
if (!driver) {
@@ -183,7 +186,6 @@ v1_flex_volume_source_t *v1_flex_volume_source_parseFromJSON(cJSON *v1_flex_volu
// v1_flex_volume_source->secret_ref
cJSON *secret_ref = cJSON_GetObjectItemCaseSensitive(v1_flex_volume_sourceJSON, "secretRef");
v1_local_object_reference_t *secret_ref_local_nonprim = NULL;
if (secret_ref) {
secret_ref_local_nonprim = v1_local_object_reference_parseFromJSON(secret_ref); //nonprimitive
}

View File

@@ -95,23 +95,29 @@ v1_handler_t *v1_handler_parseFromJSON(cJSON *v1_handlerJSON){
v1_handler_t *v1_handler_local_var = NULL;
// define the local variable for v1_handler->exec
v1_exec_action_t *exec_local_nonprim = NULL;
// define the local variable for v1_handler->http_get
v1_http_get_action_t *http_get_local_nonprim = NULL;
// define the local variable for v1_handler->tcp_socket
v1_tcp_socket_action_t *tcp_socket_local_nonprim = NULL;
// v1_handler->exec
cJSON *exec = cJSON_GetObjectItemCaseSensitive(v1_handlerJSON, "exec");
v1_exec_action_t *exec_local_nonprim = NULL;
if (exec) {
exec_local_nonprim = v1_exec_action_parseFromJSON(exec); //nonprimitive
}
// v1_handler->http_get
cJSON *http_get = cJSON_GetObjectItemCaseSensitive(v1_handlerJSON, "httpGet");
v1_http_get_action_t *http_get_local_nonprim = NULL;
if (http_get) {
http_get_local_nonprim = v1_http_get_action_parseFromJSON(http_get); //nonprimitive
}
// v1_handler->tcp_socket
cJSON *tcp_socket = cJSON_GetObjectItemCaseSensitive(v1_handlerJSON, "tcpSocket");
v1_tcp_socket_action_t *tcp_socket_local_nonprim = NULL;
if (tcp_socket) {
tcp_socket_local_nonprim = v1_tcp_socket_action_parseFromJSON(tcp_socket); //nonprimitive
}

View File

@@ -123,6 +123,15 @@ v1_horizontal_pod_autoscaler_t *v1_horizontal_pod_autoscaler_parseFromJSON(cJSON
v1_horizontal_pod_autoscaler_t *v1_horizontal_pod_autoscaler_local_var = NULL;
// define the local variable for v1_horizontal_pod_autoscaler->metadata
v1_object_meta_t *metadata_local_nonprim = NULL;
// define the local variable for v1_horizontal_pod_autoscaler->spec
v1_horizontal_pod_autoscaler_spec_t *spec_local_nonprim = NULL;
// define the local variable for v1_horizontal_pod_autoscaler->status
v1_horizontal_pod_autoscaler_status_t *status_local_nonprim = NULL;
// v1_horizontal_pod_autoscaler->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_horizontal_pod_autoscalerJSON, "apiVersion");
if (api_version) {
@@ -143,21 +152,18 @@ v1_horizontal_pod_autoscaler_t *v1_horizontal_pod_autoscaler_parseFromJSON(cJSON
// v1_horizontal_pod_autoscaler->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_horizontal_pod_autoscalerJSON, "metadata");
v1_object_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive
}
// v1_horizontal_pod_autoscaler->spec
cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1_horizontal_pod_autoscalerJSON, "spec");
v1_horizontal_pod_autoscaler_spec_t *spec_local_nonprim = NULL;
if (spec) {
spec_local_nonprim = v1_horizontal_pod_autoscaler_spec_parseFromJSON(spec); //nonprimitive
}
// v1_horizontal_pod_autoscaler->status
cJSON *status = cJSON_GetObjectItemCaseSensitive(v1_horizontal_pod_autoscalerJSON, "status");
v1_horizontal_pod_autoscaler_status_t *status_local_nonprim = NULL;
if (status) {
status_local_nonprim = v1_horizontal_pod_autoscaler_status_parseFromJSON(status); //nonprimitive
}

View File

@@ -116,6 +116,9 @@ v1_horizontal_pod_autoscaler_list_t *v1_horizontal_pod_autoscaler_list_parseFrom
v1_horizontal_pod_autoscaler_list_t *v1_horizontal_pod_autoscaler_list_local_var = NULL;
// define the local variable for v1_horizontal_pod_autoscaler_list->metadata
v1_list_meta_t *metadata_local_nonprim = NULL;
// v1_horizontal_pod_autoscaler_list->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_horizontal_pod_autoscaler_listJSON, "apiVersion");
if (api_version) {
@@ -161,7 +164,6 @@ v1_horizontal_pod_autoscaler_list_t *v1_horizontal_pod_autoscaler_list_parseFrom
// v1_horizontal_pod_autoscaler_list->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_horizontal_pod_autoscaler_listJSON, "metadata");
v1_list_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive
}

View File

@@ -91,6 +91,9 @@ v1_horizontal_pod_autoscaler_spec_t *v1_horizontal_pod_autoscaler_spec_parseFrom
v1_horizontal_pod_autoscaler_spec_t *v1_horizontal_pod_autoscaler_spec_local_var = NULL;
// define the local variable for v1_horizontal_pod_autoscaler_spec->scale_target_ref
v1_cross_version_object_reference_t *scale_target_ref_local_nonprim = NULL;
// v1_horizontal_pod_autoscaler_spec->max_replicas
cJSON *max_replicas = cJSON_GetObjectItemCaseSensitive(v1_horizontal_pod_autoscaler_specJSON, "maxReplicas");
if (!max_replicas) {
@@ -118,7 +121,6 @@ v1_horizontal_pod_autoscaler_spec_t *v1_horizontal_pod_autoscaler_spec_parseFrom
goto end;
}
v1_cross_version_object_reference_t *scale_target_ref_local_nonprim = NULL;
scale_target_ref_local_nonprim = v1_cross_version_object_reference_parseFromJSON(scale_target_ref); //nonprimitive

View File

@@ -89,13 +89,15 @@ v1_http_ingress_path_t *v1_http_ingress_path_parseFromJSON(cJSON *v1_http_ingres
v1_http_ingress_path_t *v1_http_ingress_path_local_var = NULL;
// define the local variable for v1_http_ingress_path->backend
v1_ingress_backend_t *backend_local_nonprim = NULL;
// v1_http_ingress_path->backend
cJSON *backend = cJSON_GetObjectItemCaseSensitive(v1_http_ingress_pathJSON, "backend");
if (!backend) {
goto end;
}
v1_ingress_backend_t *backend_local_nonprim = NULL;
backend_local_nonprim = v1_ingress_backend_parseFromJSON(backend); //nonprimitive

View File

@@ -123,6 +123,15 @@ v1_ingress_t *v1_ingress_parseFromJSON(cJSON *v1_ingressJSON){
v1_ingress_t *v1_ingress_local_var = NULL;
// define the local variable for v1_ingress->metadata
v1_object_meta_t *metadata_local_nonprim = NULL;
// define the local variable for v1_ingress->spec
v1_ingress_spec_t *spec_local_nonprim = NULL;
// define the local variable for v1_ingress->status
v1_ingress_status_t *status_local_nonprim = NULL;
// v1_ingress->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_ingressJSON, "apiVersion");
if (api_version) {
@@ -143,21 +152,18 @@ v1_ingress_t *v1_ingress_parseFromJSON(cJSON *v1_ingressJSON){
// v1_ingress->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_ingressJSON, "metadata");
v1_object_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive
}
// v1_ingress->spec
cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1_ingressJSON, "spec");
v1_ingress_spec_t *spec_local_nonprim = NULL;
if (spec) {
spec_local_nonprim = v1_ingress_spec_parseFromJSON(spec); //nonprimitive
}
// v1_ingress->status
cJSON *status = cJSON_GetObjectItemCaseSensitive(v1_ingressJSON, "status");
v1_ingress_status_t *status_local_nonprim = NULL;
if (status) {
status_local_nonprim = v1_ingress_status_parseFromJSON(status); //nonprimitive
}

View File

@@ -76,16 +76,20 @@ v1_ingress_backend_t *v1_ingress_backend_parseFromJSON(cJSON *v1_ingress_backend
v1_ingress_backend_t *v1_ingress_backend_local_var = NULL;
// define the local variable for v1_ingress_backend->resource
v1_typed_local_object_reference_t *resource_local_nonprim = NULL;
// define the local variable for v1_ingress_backend->service
v1_ingress_service_backend_t *service_local_nonprim = NULL;
// v1_ingress_backend->resource
cJSON *resource = cJSON_GetObjectItemCaseSensitive(v1_ingress_backendJSON, "resource");
v1_typed_local_object_reference_t *resource_local_nonprim = NULL;
if (resource) {
resource_local_nonprim = v1_typed_local_object_reference_parseFromJSON(resource); //nonprimitive
}
// v1_ingress_backend->service
cJSON *service = cJSON_GetObjectItemCaseSensitive(v1_ingress_backendJSON, "service");
v1_ingress_service_backend_t *service_local_nonprim = NULL;
if (service) {
service_local_nonprim = v1_ingress_service_backend_parseFromJSON(service); //nonprimitive
}

View File

@@ -104,6 +104,12 @@ v1_ingress_class_t *v1_ingress_class_parseFromJSON(cJSON *v1_ingress_classJSON){
v1_ingress_class_t *v1_ingress_class_local_var = NULL;
// define the local variable for v1_ingress_class->metadata
v1_object_meta_t *metadata_local_nonprim = NULL;
// define the local variable for v1_ingress_class->spec
v1_ingress_class_spec_t *spec_local_nonprim = NULL;
// v1_ingress_class->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_ingress_classJSON, "apiVersion");
if (api_version) {
@@ -124,14 +130,12 @@ v1_ingress_class_t *v1_ingress_class_parseFromJSON(cJSON *v1_ingress_classJSON){
// v1_ingress_class->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_ingress_classJSON, "metadata");
v1_object_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive
}
// v1_ingress_class->spec
cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1_ingress_classJSON, "spec");
v1_ingress_class_spec_t *spec_local_nonprim = NULL;
if (spec) {
spec_local_nonprim = v1_ingress_class_spec_parseFromJSON(spec); //nonprimitive
}

View File

@@ -116,6 +116,9 @@ v1_ingress_class_list_t *v1_ingress_class_list_parseFromJSON(cJSON *v1_ingress_c
v1_ingress_class_list_t *v1_ingress_class_list_local_var = NULL;
// define the local variable for v1_ingress_class_list->metadata
v1_list_meta_t *metadata_local_nonprim = NULL;
// v1_ingress_class_list->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_ingress_class_listJSON, "apiVersion");
if (api_version) {
@@ -161,7 +164,6 @@ v1_ingress_class_list_t *v1_ingress_class_list_parseFromJSON(cJSON *v1_ingress_c
// v1_ingress_class_list->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_ingress_class_listJSON, "metadata");
v1_list_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive
}

View File

@@ -71,6 +71,9 @@ v1_ingress_class_spec_t *v1_ingress_class_spec_parseFromJSON(cJSON *v1_ingress_c
v1_ingress_class_spec_t *v1_ingress_class_spec_local_var = NULL;
// define the local variable for v1_ingress_class_spec->parameters
v1_ingress_class_parameters_reference_t *parameters_local_nonprim = NULL;
// v1_ingress_class_spec->controller
cJSON *controller = cJSON_GetObjectItemCaseSensitive(v1_ingress_class_specJSON, "controller");
if (controller) {
@@ -82,7 +85,6 @@ v1_ingress_class_spec_t *v1_ingress_class_spec_parseFromJSON(cJSON *v1_ingress_c
// v1_ingress_class_spec->parameters
cJSON *parameters = cJSON_GetObjectItemCaseSensitive(v1_ingress_class_specJSON, "parameters");
v1_ingress_class_parameters_reference_t *parameters_local_nonprim = NULL;
if (parameters) {
parameters_local_nonprim = v1_ingress_class_parameters_reference_parseFromJSON(parameters); //nonprimitive
}

View File

@@ -116,6 +116,9 @@ v1_ingress_list_t *v1_ingress_list_parseFromJSON(cJSON *v1_ingress_listJSON){
v1_ingress_list_t *v1_ingress_list_local_var = NULL;
// define the local variable for v1_ingress_list->metadata
v1_list_meta_t *metadata_local_nonprim = NULL;
// v1_ingress_list->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_ingress_listJSON, "apiVersion");
if (api_version) {
@@ -161,7 +164,6 @@ v1_ingress_list_t *v1_ingress_list_parseFromJSON(cJSON *v1_ingress_listJSON){
// v1_ingress_list->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_ingress_listJSON, "metadata");
v1_list_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive
}

View File

@@ -71,6 +71,9 @@ v1_ingress_rule_t *v1_ingress_rule_parseFromJSON(cJSON *v1_ingress_ruleJSON){
v1_ingress_rule_t *v1_ingress_rule_local_var = NULL;
// define the local variable for v1_ingress_rule->http
v1_http_ingress_rule_value_t *http_local_nonprim = NULL;
// v1_ingress_rule->host
cJSON *host = cJSON_GetObjectItemCaseSensitive(v1_ingress_ruleJSON, "host");
if (host) {
@@ -82,7 +85,6 @@ v1_ingress_rule_t *v1_ingress_rule_parseFromJSON(cJSON *v1_ingress_ruleJSON){
// v1_ingress_rule->http
cJSON *http = cJSON_GetObjectItemCaseSensitive(v1_ingress_ruleJSON, "http");
v1_http_ingress_rule_value_t *http_local_nonprim = NULL;
if (http) {
http_local_nonprim = v1_http_ingress_rule_value_parseFromJSON(http); //nonprimitive
}

View File

@@ -73,6 +73,9 @@ v1_ingress_service_backend_t *v1_ingress_service_backend_parseFromJSON(cJSON *v1
v1_ingress_service_backend_t *v1_ingress_service_backend_local_var = NULL;
// define the local variable for v1_ingress_service_backend->port
v1_service_backend_port_t *port_local_nonprim = NULL;
// v1_ingress_service_backend->name
cJSON *name = cJSON_GetObjectItemCaseSensitive(v1_ingress_service_backendJSON, "name");
if (!name) {
@@ -87,7 +90,6 @@ v1_ingress_service_backend_t *v1_ingress_service_backend_parseFromJSON(cJSON *v1
// v1_ingress_service_backend->port
cJSON *port = cJSON_GetObjectItemCaseSensitive(v1_ingress_service_backendJSON, "port");
v1_service_backend_port_t *port_local_nonprim = NULL;
if (port) {
port_local_nonprim = v1_service_backend_port_parseFromJSON(port); //nonprimitive
}

View File

@@ -129,9 +129,11 @@ v1_ingress_spec_t *v1_ingress_spec_parseFromJSON(cJSON *v1_ingress_specJSON){
v1_ingress_spec_t *v1_ingress_spec_local_var = NULL;
// define the local variable for v1_ingress_spec->default_backend
v1_ingress_backend_t *default_backend_local_nonprim = NULL;
// v1_ingress_spec->default_backend
cJSON *default_backend = cJSON_GetObjectItemCaseSensitive(v1_ingress_specJSON, "defaultBackend");
v1_ingress_backend_t *default_backend_local_nonprim = NULL;
if (default_backend) {
default_backend_local_nonprim = v1_ingress_backend_parseFromJSON(default_backend); //nonprimitive
}

View File

@@ -57,9 +57,11 @@ v1_ingress_status_t *v1_ingress_status_parseFromJSON(cJSON *v1_ingress_statusJSO
v1_ingress_status_t *v1_ingress_status_local_var = NULL;
// define the local variable for v1_ingress_status->load_balancer
v1_load_balancer_status_t *load_balancer_local_nonprim = NULL;
// v1_ingress_status->load_balancer
cJSON *load_balancer = cJSON_GetObjectItemCaseSensitive(v1_ingress_statusJSON, "loadBalancer");
v1_load_balancer_status_t *load_balancer_local_nonprim = NULL;
if (load_balancer) {
load_balancer_local_nonprim = v1_load_balancer_status_parseFromJSON(load_balancer); //nonprimitive
}

View File

@@ -199,6 +199,9 @@ v1_iscsi_persistent_volume_source_t *v1_iscsi_persistent_volume_source_parseFrom
v1_iscsi_persistent_volume_source_t *v1_iscsi_persistent_volume_source_local_var = NULL;
// define the local variable for v1_iscsi_persistent_volume_source->secret_ref
v1_secret_reference_t *secret_ref_local_nonprim = NULL;
// v1_iscsi_persistent_volume_source->chap_auth_discovery
cJSON *chap_auth_discovery = cJSON_GetObjectItemCaseSensitive(v1_iscsi_persistent_volume_sourceJSON, "chapAuthDiscovery");
if (chap_auth_discovery) {
@@ -299,7 +302,6 @@ v1_iscsi_persistent_volume_source_t *v1_iscsi_persistent_volume_source_parseFrom
// v1_iscsi_persistent_volume_source->secret_ref
cJSON *secret_ref = cJSON_GetObjectItemCaseSensitive(v1_iscsi_persistent_volume_sourceJSON, "secretRef");
v1_secret_reference_t *secret_ref_local_nonprim = NULL;
if (secret_ref) {
secret_ref_local_nonprim = v1_secret_reference_parseFromJSON(secret_ref); //nonprimitive
}

View File

@@ -199,6 +199,9 @@ v1_iscsi_volume_source_t *v1_iscsi_volume_source_parseFromJSON(cJSON *v1_iscsi_v
v1_iscsi_volume_source_t *v1_iscsi_volume_source_local_var = NULL;
// define the local variable for v1_iscsi_volume_source->secret_ref
v1_local_object_reference_t *secret_ref_local_nonprim = NULL;
// v1_iscsi_volume_source->chap_auth_discovery
cJSON *chap_auth_discovery = cJSON_GetObjectItemCaseSensitive(v1_iscsi_volume_sourceJSON, "chapAuthDiscovery");
if (chap_auth_discovery) {
@@ -299,7 +302,6 @@ v1_iscsi_volume_source_t *v1_iscsi_volume_source_parseFromJSON(cJSON *v1_iscsi_v
// v1_iscsi_volume_source->secret_ref
cJSON *secret_ref = cJSON_GetObjectItemCaseSensitive(v1_iscsi_volume_sourceJSON, "secretRef");
v1_local_object_reference_t *secret_ref_local_nonprim = NULL;
if (secret_ref) {
secret_ref_local_nonprim = v1_local_object_reference_parseFromJSON(secret_ref); //nonprimitive
}

View File

@@ -123,6 +123,15 @@ v1_job_t *v1_job_parseFromJSON(cJSON *v1_jobJSON){
v1_job_t *v1_job_local_var = NULL;
// define the local variable for v1_job->metadata
v1_object_meta_t *metadata_local_nonprim = NULL;
// define the local variable for v1_job->spec
v1_job_spec_t *spec_local_nonprim = NULL;
// define the local variable for v1_job->status
v1_job_status_t *status_local_nonprim = NULL;
// v1_job->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_jobJSON, "apiVersion");
if (api_version) {
@@ -143,21 +152,18 @@ v1_job_t *v1_job_parseFromJSON(cJSON *v1_jobJSON){
// v1_job->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_jobJSON, "metadata");
v1_object_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive
}
// v1_job->spec
cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1_jobJSON, "spec");
v1_job_spec_t *spec_local_nonprim = NULL;
if (spec) {
spec_local_nonprim = v1_job_spec_parseFromJSON(spec); //nonprimitive
}
// v1_job->status
cJSON *status = cJSON_GetObjectItemCaseSensitive(v1_jobJSON, "status");
v1_job_status_t *status_local_nonprim = NULL;
if (status) {
status_local_nonprim = v1_job_status_parseFromJSON(status); //nonprimitive
}

View File

@@ -116,6 +116,9 @@ v1_job_list_t *v1_job_list_parseFromJSON(cJSON *v1_job_listJSON){
v1_job_list_t *v1_job_list_local_var = NULL;
// define the local variable for v1_job_list->metadata
v1_list_meta_t *metadata_local_nonprim = NULL;
// v1_job_list->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_job_listJSON, "apiVersion");
if (api_version) {
@@ -161,7 +164,6 @@ v1_job_list_t *v1_job_list_parseFromJSON(cJSON *v1_job_listJSON){
// v1_job_list->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_job_listJSON, "metadata");
v1_list_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive
}

View File

@@ -162,6 +162,12 @@ v1_job_spec_t *v1_job_spec_parseFromJSON(cJSON *v1_job_specJSON){
v1_job_spec_t *v1_job_spec_local_var = NULL;
// define the local variable for v1_job_spec->selector
v1_label_selector_t *selector_local_nonprim = NULL;
// define the local variable for v1_job_spec->_template
v1_pod_template_spec_t *_template_local_nonprim = NULL;
// v1_job_spec->active_deadline_seconds
cJSON *active_deadline_seconds = cJSON_GetObjectItemCaseSensitive(v1_job_specJSON, "activeDeadlineSeconds");
if (active_deadline_seconds) {
@@ -218,7 +224,6 @@ v1_job_spec_t *v1_job_spec_parseFromJSON(cJSON *v1_job_specJSON){
// v1_job_spec->selector
cJSON *selector = cJSON_GetObjectItemCaseSensitive(v1_job_specJSON, "selector");
v1_label_selector_t *selector_local_nonprim = NULL;
if (selector) {
selector_local_nonprim = v1_label_selector_parseFromJSON(selector); //nonprimitive
}
@@ -238,7 +243,6 @@ v1_job_spec_t *v1_job_spec_parseFromJSON(cJSON *v1_job_specJSON){
goto end;
}
v1_pod_template_spec_t *_template_local_nonprim = NULL;
_template_local_nonprim = v1_pod_template_spec_parseFromJSON(_template); //nonprimitive

View File

@@ -158,6 +158,9 @@ v1_job_status_t *v1_job_status_parseFromJSON(cJSON *v1_job_statusJSON){
v1_job_status_t *v1_job_status_local_var = NULL;
// define the local variable for v1_job_status->uncounted_terminated_pods
v1_uncounted_terminated_pods_t *uncounted_terminated_pods_local_nonprim = NULL;
// v1_job_status->active
cJSON *active = cJSON_GetObjectItemCaseSensitive(v1_job_statusJSON, "active");
if (active) {
@@ -236,7 +239,6 @@ v1_job_status_t *v1_job_status_parseFromJSON(cJSON *v1_job_statusJSON){
// v1_job_status->uncounted_terminated_pods
cJSON *uncounted_terminated_pods = cJSON_GetObjectItemCaseSensitive(v1_job_statusJSON, "uncountedTerminatedPods");
v1_uncounted_terminated_pods_t *uncounted_terminated_pods_local_nonprim = NULL;
if (uncounted_terminated_pods) {
uncounted_terminated_pods_local_nonprim = v1_uncounted_terminated_pods_parseFromJSON(uncounted_terminated_pods); //nonprimitive
}

View File

@@ -76,16 +76,20 @@ v1_job_template_spec_t *v1_job_template_spec_parseFromJSON(cJSON *v1_job_templat
v1_job_template_spec_t *v1_job_template_spec_local_var = NULL;
// define the local variable for v1_job_template_spec->metadata
v1_object_meta_t *metadata_local_nonprim = NULL;
// define the local variable for v1_job_template_spec->spec
v1_job_spec_t *spec_local_nonprim = NULL;
// v1_job_template_spec->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_job_template_specJSON, "metadata");
v1_object_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive
}
// v1_job_template_spec->spec
cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1_job_template_specJSON, "spec");
v1_job_spec_t *spec_local_nonprim = NULL;
if (spec) {
spec_local_nonprim = v1_job_spec_parseFromJSON(spec); //nonprimitive
}

View File

@@ -751,6 +751,12 @@ v1_json_schema_props_t *v1_json_schema_props_parseFromJSON(cJSON *v1_json_schema
v1_json_schema_props_t *v1_json_schema_props_local_var = NULL;
// define the local variable for v1_json_schema_props->external_docs
v1_external_documentation_t *external_docs_local_nonprim = NULL;
// define the local variable for v1_json_schema_props->_not
v1_json_schema_props_t *_not_local_nonprim = NULL;
// v1_json_schema_props->ref
cJSON *ref = cJSON_GetObjectItemCaseSensitive(v1_json_schema_propsJSON, "$ref");
if (ref) {
@@ -926,7 +932,6 @@ v1_json_schema_props_t *v1_json_schema_props_parseFromJSON(cJSON *v1_json_schema
// v1_json_schema_props->external_docs
cJSON *external_docs = cJSON_GetObjectItemCaseSensitive(v1_json_schema_propsJSON, "externalDocs");
v1_external_documentation_t *external_docs_local_nonprim = NULL;
if (external_docs) {
external_docs_local_nonprim = v1_external_documentation_parseFromJSON(external_docs); //nonprimitive
}
@@ -1039,7 +1044,6 @@ v1_json_schema_props_t *v1_json_schema_props_parseFromJSON(cJSON *v1_json_schema
// v1_json_schema_props->_not
cJSON *_not = cJSON_GetObjectItemCaseSensitive(v1_json_schema_propsJSON, "not");
v1_json_schema_props_t *_not_local_nonprim = NULL;
if (_not) {
_not_local_nonprim = v1_json_schema_props_parseFromJSON(_not); //nonprimitive
}

View File

@@ -104,6 +104,12 @@ v1_lease_t *v1_lease_parseFromJSON(cJSON *v1_leaseJSON){
v1_lease_t *v1_lease_local_var = NULL;
// define the local variable for v1_lease->metadata
v1_object_meta_t *metadata_local_nonprim = NULL;
// define the local variable for v1_lease->spec
v1_lease_spec_t *spec_local_nonprim = NULL;
// v1_lease->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_leaseJSON, "apiVersion");
if (api_version) {
@@ -124,14 +130,12 @@ v1_lease_t *v1_lease_parseFromJSON(cJSON *v1_leaseJSON){
// v1_lease->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_leaseJSON, "metadata");
v1_object_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive
}
// v1_lease->spec
cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1_leaseJSON, "spec");
v1_lease_spec_t *spec_local_nonprim = NULL;
if (spec) {
spec_local_nonprim = v1_lease_spec_parseFromJSON(spec); //nonprimitive
}

View File

@@ -116,6 +116,9 @@ v1_lease_list_t *v1_lease_list_parseFromJSON(cJSON *v1_lease_listJSON){
v1_lease_list_t *v1_lease_list_local_var = NULL;
// define the local variable for v1_lease_list->metadata
v1_list_meta_t *metadata_local_nonprim = NULL;
// v1_lease_list->api_version
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_lease_listJSON, "apiVersion");
if (api_version) {
@@ -161,7 +164,6 @@ v1_lease_list_t *v1_lease_list_parseFromJSON(cJSON *v1_lease_listJSON){
// v1_lease_list->metadata
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_lease_listJSON, "metadata");
v1_list_meta_t *metadata_local_nonprim = NULL;
if (metadata) {
metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive
}

View File

@@ -76,16 +76,20 @@ v1_lifecycle_t *v1_lifecycle_parseFromJSON(cJSON *v1_lifecycleJSON){
v1_lifecycle_t *v1_lifecycle_local_var = NULL;
// define the local variable for v1_lifecycle->post_start
v1_handler_t *post_start_local_nonprim = NULL;
// define the local variable for v1_lifecycle->pre_stop
v1_handler_t *pre_stop_local_nonprim = NULL;
// v1_lifecycle->post_start
cJSON *post_start = cJSON_GetObjectItemCaseSensitive(v1_lifecycleJSON, "postStart");
v1_handler_t *post_start_local_nonprim = NULL;
if (post_start) {
post_start_local_nonprim = v1_handler_parseFromJSON(post_start); //nonprimitive
}
// v1_lifecycle->pre_stop
cJSON *pre_stop = cJSON_GetObjectItemCaseSensitive(v1_lifecycleJSON, "preStop");
v1_handler_t *pre_stop_local_nonprim = NULL;
if (pre_stop) {
pre_stop_local_nonprim = v1_handler_parseFromJSON(pre_stop); //nonprimitive
}

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